Commit 97a611a4 by Oláh István Gergely

dashboard: fix returning url in views/add_trait

parent 7b8bea89
......@@ -541,8 +541,7 @@ class NodeDetailView(LoginRequiredMixin, SuperuserRequiredMixin, DetailView):
content_type="application=json"
)
else:
return redirect(reverse_lazy("dashboard.views.node-detail",
kwargs={'pk': self.object.pk}))
return redirect(self.object.get_absolute_url())
class GroupDetailView(CheckedDetailView):
......
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