0017_footertext_enforce_not_null.py 943 B

12345678910111213141516171819202122232425262728293031323334
  1. # Generated by Django 4.2 on 2023-05-15 10:51
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. import uuid
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. ("base", "0016_footertext_bootstrap_translation"),
  8. ]
  9. operations = [
  10. migrations.AlterField(
  11. model_name="footertext",
  12. name="locale",
  13. field=models.ForeignKey(
  14. editable=False,
  15. on_delete=django.db.models.deletion.PROTECT,
  16. related_name="+",
  17. to="wagtailcore.locale",
  18. ),
  19. ),
  20. migrations.AlterField(
  21. model_name="footertext",
  22. name="translation_key",
  23. field=models.UUIDField(default=uuid.uuid4, editable=False),
  24. ),
  25. migrations.AlterUniqueTogether(
  26. name="footertext",
  27. unique_together={("translation_key", "locale")},
  28. ),
  29. ]