0006_auto_20220823_1659.py 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # Generated by Django 3.2.15 on 2022-08-23 16:59
  2. import django.core.validators
  3. from django.db import migrations, models
  4. import django.db.models.deletion
  5. import wagtail_editable_help.models
  6. class Migration(migrations.Migration):
  7. dependencies = [
  8. ("wagtailimages", "0024_index_image_file_hash"),
  9. ("locations", "0005_use_json_field_for_body_streamfield"),
  10. ]
  11. operations = [
  12. migrations.AlterField(
  13. model_name="locationoperatinghours",
  14. name="closed",
  15. field=models.BooleanField(
  16. blank=True,
  17. help_text=wagtail_editable_help.models.HelpText(
  18. "Location page",
  19. "operating hours closed",
  20. default="Tick if location is closed on this day",
  21. ),
  22. verbose_name="Closed?",
  23. ),
  24. ),
  25. migrations.AlterField(
  26. model_name="locationpage",
  27. name="image",
  28. field=models.ForeignKey(
  29. blank=True,
  30. help_text=wagtail_editable_help.models.HelpText(
  31. "Common",
  32. "hero image",
  33. default="Landscape mode only; horizontal width between 1000px and 3000px.",
  34. ),
  35. null=True,
  36. on_delete=django.db.models.deletion.SET_NULL,
  37. related_name="+",
  38. to="wagtailimages.image",
  39. ),
  40. ),
  41. migrations.AlterField(
  42. model_name="locationpage",
  43. name="introduction",
  44. field=models.TextField(
  45. blank=True,
  46. help_text=wagtail_editable_help.models.HelpText(
  47. "Location page", "introduction", default="Text to describe the page"
  48. ),
  49. ),
  50. ),
  51. migrations.AlterField(
  52. model_name="locationpage",
  53. name="lat_long",
  54. field=models.CharField(
  55. help_text=wagtail_editable_help.models.HelpText(
  56. "Location page",
  57. "lat/long",
  58. default="Comma separated lat/long. (Ex. 64.144367, -21.939182) Right click Google Maps and select 'What's Here'",
  59. ),
  60. max_length=36,
  61. validators=[
  62. django.core.validators.RegexValidator(
  63. code="invalid_lat_long",
  64. message="Lat Long must be a comma-separated numeric lat and long",
  65. regex="^(\\-?\\d+(\\.\\d+)?),\\s*(\\-?\\d+(\\.\\d+)?)$",
  66. )
  67. ],
  68. ),
  69. ),
  70. migrations.AlterField(
  71. model_name="locationsindexpage",
  72. name="image",
  73. field=models.ForeignKey(
  74. blank=True,
  75. help_text=wagtail_editable_help.models.HelpText(
  76. "Common",
  77. "hero image",
  78. default="Landscape mode only; horizontal width between 1000px and 3000px.",
  79. ),
  80. null=True,
  81. on_delete=django.db.models.deletion.SET_NULL,
  82. related_name="+",
  83. to="wagtailimages.image",
  84. ),
  85. ),
  86. migrations.AlterField(
  87. model_name="locationsindexpage",
  88. name="introduction",
  89. field=models.TextField(
  90. blank=True,
  91. help_text=wagtail_editable_help.models.HelpText(
  92. "Locations index page",
  93. "introduction",
  94. default="Text to describe the page",
  95. ),
  96. ),
  97. ),
  98. ]