Skip to content

Commit

Permalink
Hotfix get_or_create bug when syncing permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephrdev committed Feb 12, 2019
1 parent 0e5d1c1 commit 5c70f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion centralauth/provider/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def post(self, request, *args, **kwargs):
application=application,
app_label=perm['app_label'],
codename=perm['codename'],
repr=perm['repr']
defaults={'repr': perm['repr']},
)
old_perms = old_perms.exclude(pk=perm_obj.pk)
if created:
Expand Down

0 comments on commit 5c70f84

Please sign in to comment.