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