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):
if next:
return next
else:
return reverse_lazy("dashboard.views.node-detail",
kwargs={'pk': self.object.pk})
return self.object.get_absolute_url()
def get_context_data(self, **kwargs):
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