Skip to content

Commit

Permalink
fix mission Permission reference in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
spiccinini committed Oct 11, 2019
1 parent 000780b commit af42ade
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redpanal/core/migrations/0001_initial.py
Expand Up @@ -8,6 +8,8 @@
def create_default_group(apps, schema_editor):
Group = apps.get_model('auth', 'Group')
User = apps.get_model('auth', 'User')
Permission = apps.get_model('auth', 'Permission')

default_group, created = Group.objects.get_or_create(name=DEFAULT_GROUP)
if created:
add_audio = Permission.objects.get(codename='add_audio')
Expand Down

0 comments on commit af42ade

Please sign in to comment.