1234567891011121314151617181920212223 |
- from django.db import migrations
- def forwards_func(apps, schema_editor):
- ProjectAlert = apps.get_model("alerts", "ProjectAlert")
- for alert in ProjectAlert.objects.all():
-
- alert.alertrecipient_set.create(recipient_type="email")
- class Migration(migrations.Migration):
- dependencies = [
- ("alerts", "0002_auto_20210314_2022"),
- ]
- operations = [
- migrations.AlterUniqueTogether(
- name="alertrecipient", unique_together={("alert", "recipient_type", "url")},
- ),
- ]
|