Commit 7b8bea89 by Oláh István Gergely

dashboard: fix returning url in add_trait

parent d29e3689
......@@ -524,8 +524,7 @@ class NodeDetailView(LoginRequiredMixin, SuperuserRequiredMixin, DetailView):
except:
pass
return redirect(reverse_lazy("dashboard.views.node-detail",
kwargs={'pk': self.object.pk}))
return redirect(self.object.get_absolute_url())
def __remove_trait(self, request):
try:
......
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