reformat code

This commit is contained in:
2018-02-11 10:56:44 +01:00
parent 076808f183
commit d9d78a969f
43 changed files with 265 additions and 248 deletions

View File

@@ -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'),