Skip to content

Commit

Permalink
fix bug of can't change permission chang_config's name
Browse files Browse the repository at this point in the history
  • Loading branch information
ykh committed Apr 20, 2018
1 parent b032f8f commit 887ee92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions constance/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ def create_perm(self, using=None, *args, **kwargs):
)

permission, created = Permission.objects.using(using).get_or_create(
name='Can change config',
content_type=content_type,
codename='change_config')
codename='change_config',
defaults={'name': 'Can change config'})

0 comments on commit 887ee92

Please sign in to comment.