1
0
Fork 0
IdreXyz/label/migrations/0005_auto_20210823_1658.py

22 lines
468 B
Python
Raw Permalink Normal View History

2021-08-23 17:03:24 +02:00
# 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),
]