22 lines
546 B
Python
22 lines
546 B
Python
# Generated by Django 2.2.19 on 2021-04-28 13:33
|
|
|
|
from django.db import migrations
|
|
|
|
|
|
def remove_recurrence_end_date(apps, schema_editor):
|
|
Event = apps.get_model('agendas', 'Event')
|
|
|
|
Event.objects.filter(primary_event__isnull=False, recurrence_end_date__isnull=False).update(
|
|
recurrence_end_date=None
|
|
)
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
('agendas', '0078_absence_reasons'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RunPython(remove_recurrence_end_date, migrations.RunPython.noop),
|
|
]
|