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