25 lines
590 B
Python
25 lines
590 B
Python
# Generated by Django 3.0.5 on 2020-04-26 14:14
|
|
|
|
from django.db import migrations
|
|
from django_scopes import scopes_disabled
|
|
|
|
|
|
def apply_migration(apps, schema_editor):
|
|
with scopes_disabled():
|
|
Group = apps.get_model('auth', 'Group')
|
|
Group.objects.bulk_create([
|
|
Group(name=u'guest'),
|
|
Group(name=u'user'),
|
|
Group(name=u'admin'),
|
|
])
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
('cookbook', '0033_userpreference_default_page'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RunPython(apply_migration)
|
|
]
|