2020-05-27 07:52:27 +00:00
|
|
|
# Generated by Django 3.0.3 on 2020-05-27 07:43
|
|
|
|
|
|
|
|
from django.db import migrations
|
|
|
|
|
|
|
|
|
|
|
|
def create_stokens(apps, schema_editor):
|
2020-11-14 15:04:41 +00:00
|
|
|
Stoken = apps.get_model("django_etebase", "Stoken")
|
|
|
|
CollectionMember = apps.get_model("django_etebase", "CollectionMember")
|
2020-05-27 07:52:27 +00:00
|
|
|
|
|
|
|
for member in CollectionMember.objects.all():
|
|
|
|
member.stoken = Stoken.objects.create()
|
|
|
|
member.save()
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2020-11-14 15:04:41 +00:00
|
|
|
("django_etebase", "0011_collectionmember_stoken"),
|
2020-05-27 07:52:27 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.RunPython(create_stokens),
|
|
|
|
]
|