22 lines
468 B
Python
22 lines
468 B
Python
|
# Generated by Django 3.2.6 on 2021-08-23 14:58
|
||
|
|
||
|
from django.db import migrations
|
||
|
|
||
|
|
||
|
def publish_all_releases(apps, schema_editor):
|
||
|
Release = apps.get_model('label', 'Release')
|
||
|
for release in Release.objects.all():
|
||
|
release.released = True
|
||
|
release.save()
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('label', '0004_release_released'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.RunPython(publish_all_releases),
|
||
|
]
|