0019_userapprovaltask.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Generated by Django 4.2.dev20221115094701 on 2022-11-18 11:04
  2. from django.conf import settings
  3. from django.db import migrations, models
  4. import django.db.models.deletion
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. ("wagtailcore", "0078_referenceindex"),
  8. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  9. ("base", "0018_add_genericsettings_and_sitesettings"),
  10. ]
  11. operations = [
  12. migrations.CreateModel(
  13. name="UserApprovalTaskState",
  14. fields=[
  15. (
  16. "taskstate_ptr",
  17. models.OneToOneField(
  18. auto_created=True,
  19. on_delete=django.db.models.deletion.CASCADE,
  20. parent_link=True,
  21. primary_key=True,
  22. serialize=False,
  23. to="wagtailcore.taskstate",
  24. ),
  25. ),
  26. ],
  27. bases=("wagtailcore.taskstate",),
  28. ),
  29. migrations.CreateModel(
  30. name="UserApprovalTask",
  31. fields=[
  32. (
  33. "task_ptr",
  34. models.OneToOneField(
  35. auto_created=True,
  36. on_delete=django.db.models.deletion.CASCADE,
  37. parent_link=True,
  38. primary_key=True,
  39. serialize=False,
  40. to="wagtailcore.task",
  41. ),
  42. ),
  43. (
  44. "user",
  45. models.ForeignKey(
  46. null=True,
  47. on_delete=django.db.models.deletion.SET_NULL,
  48. to=settings.AUTH_USER_MODEL,
  49. ),
  50. ),
  51. ],
  52. bases=("wagtailcore.task",),
  53. ),
  54. ]