reformat code
This commit is contained in:
@@ -4,6 +4,7 @@ from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
def create_default_groups_permissions(apps, schema_editor):
|
||||
# We can't import the Person model directly as it may be a newer
|
||||
# version than this migration expects. We use the historical version.
|
||||
@@ -16,6 +17,7 @@ def create_default_groups_permissions(apps, schema_editor):
|
||||
ag.save()
|
||||
ag.permissions.add(Permission.objects.get(codename="change_accounting"))
|
||||
|
||||
|
||||
def delete_default_groups_permissions(apps, schema_editor):
|
||||
Group = apps.get_model("auth", "Group")
|
||||
Group.objects.get(name='Location').delete()
|
||||
@@ -23,7 +25,6 @@ def delete_default_groups_permissions(apps, schema_editor):
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('billard', '0019_merge_20170310_1941'),
|
||||
('sessions', '0001_initial'),
|
||||
|
||||
Reference in New Issue
Block a user