Commit 13186982 by Oláh István Gergely

dashboard: fix missing get_absolute_url in AddTraitView

parent 124c1e7b
...@@ -1225,8 +1225,7 @@ class NodeAddTraitView(SuperuserRequiredMixin, DetailView): ...@@ -1225,8 +1225,7 @@ class NodeAddTraitView(SuperuserRequiredMixin, DetailView):
if next: if next:
return next return next
else: else:
return reverse_lazy("dashboard.views.node-detail", return self.object.get_absolute_url()
kwargs={'pk': self.object.pk})
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
self.object = self.get_object() self.object = self.get_object()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment