Skip to content
Permalink
Browse files

fix mission Permission reference in migration

  • Loading branch information...
spiccinini committed Oct 11, 2019
1 parent 000780b commit af42ade5fb7bb0ee5335f01c14700d677a1a0113
Showing with 2 additions and 0 deletions.
  1. +2 −0 redpanal/core/migrations/0001_initial.py
@@ -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')

0 comments on commit af42ade

Please sign in to comment.
You can’t perform that action at this time.