23 lines
608 B
Python
23 lines
608 B
Python
# Generated by Django 3.0.7 on 2020-09-22 10:33
|
|
|
|
from django.db import migrations
|
|
|
|
|
|
def create_default_space(apps, schema_editor):
|
|
# Space = apps.get_model('cookbook', 'Space')
|
|
# Space.objects.create(
|
|
# name='Default',
|
|
# message=''
|
|
# )
|
|
pass # Beginning with the multi space tenancy version (~something around 1.3) a default space is no longer needed as the first user can create it after setup
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
('cookbook', '0083_space'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RunPython(create_default_space),
|
|
]
|