Skip to content

Commit

Permalink
Fix success URL in default perm
Browse files Browse the repository at this point in the history
  • Loading branch information
Sispheor committed Sep 21, 2023
1 parent 8ca93cb commit c518e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions profiles/views/globalpermission.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ class GlobalPermissionEditView(SquestUpdateView):
def get_object(self, queryset=None):
return GlobalPermission.load()

def get_generic_url(self, action):
return reverse_lazy('profiles:globalpermission_rbac')
def get_success_url(self):
return reverse_lazy('profiles:globalpermission_default_permissions')

def dispatch(self, request, *args, **kwargs):
self.kwargs['pk'] = self.get_object().id
Expand Down

0 comments on commit c518e46

Please sign in to comment.