0009_auto_20220823_1659.py 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. # Generated by Django 3.2.15 on 2022-08-23 16:59
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. import wagtail.fields
  5. import wagtail_editable_help.models
  6. class Migration(migrations.Migration):
  7. dependencies = [
  8. ("wagtailcore", "0040_page_draft_title"),
  9. ("wagtailimages", "0024_index_image_file_hash"),
  10. ("base", "0008_use_json_field_for_body_streamfield"),
  11. ]
  12. operations = [
  13. migrations.AlterField(
  14. model_name="gallerypage",
  15. name="collection",
  16. field=models.ForeignKey(
  17. blank=True,
  18. help_text=wagtail_editable_help.models.HelpText(
  19. "Gallery page",
  20. "collection",
  21. default="Select the image collection for this gallery.",
  22. ),
  23. limit_choices_to=models.Q(("name__in", ["Root"]), _negated=True),
  24. null=True,
  25. on_delete=django.db.models.deletion.SET_NULL,
  26. to="wagtailcore.collection",
  27. ),
  28. ),
  29. migrations.AlterField(
  30. model_name="gallerypage",
  31. name="image",
  32. field=models.ForeignKey(
  33. blank=True,
  34. help_text=wagtail_editable_help.models.HelpText(
  35. "Common",
  36. "hero image",
  37. default="Landscape mode only; horizontal width between 1000px and 3000px.",
  38. ),
  39. null=True,
  40. on_delete=django.db.models.deletion.SET_NULL,
  41. related_name="+",
  42. to="wagtailimages.image",
  43. ),
  44. ),
  45. migrations.AlterField(
  46. model_name="gallerypage",
  47. name="introduction",
  48. field=models.TextField(
  49. blank=True,
  50. help_text=wagtail_editable_help.models.HelpText(
  51. "Gallery page", "introduction", default="Text to describe the page"
  52. ),
  53. ),
  54. ),
  55. migrations.AlterField(
  56. model_name="homepage",
  57. name="featured_section_1",
  58. field=models.ForeignKey(
  59. blank=True,
  60. help_text=wagtail_editable_help.models.HelpText(
  61. "Home page",
  62. "featured section 1",
  63. default="First featured section for the homepage. Will display up to three child items.",
  64. ),
  65. null=True,
  66. on_delete=django.db.models.deletion.SET_NULL,
  67. related_name="+",
  68. to="wagtailcore.page",
  69. verbose_name="Featured section 1",
  70. ),
  71. ),
  72. migrations.AlterField(
  73. model_name="homepage",
  74. name="featured_section_1_title",
  75. field=models.CharField(
  76. blank=True,
  77. help_text=wagtail_editable_help.models.HelpText(
  78. "Home page",
  79. "featured section title 1",
  80. default="Title to display above the promo copy",
  81. ),
  82. max_length=255,
  83. ),
  84. ),
  85. migrations.AlterField(
  86. model_name="homepage",
  87. name="featured_section_2",
  88. field=models.ForeignKey(
  89. blank=True,
  90. help_text=wagtail_editable_help.models.HelpText(
  91. "Home page",
  92. "featured section 2",
  93. default="Second featured section for the homepage. Will display up to three child items.",
  94. ),
  95. null=True,
  96. on_delete=django.db.models.deletion.SET_NULL,
  97. related_name="+",
  98. to="wagtailcore.page",
  99. verbose_name="Featured section 2",
  100. ),
  101. ),
  102. migrations.AlterField(
  103. model_name="homepage",
  104. name="featured_section_2_title",
  105. field=models.CharField(
  106. blank=True,
  107. help_text=wagtail_editable_help.models.HelpText(
  108. "Home page",
  109. "featured section title 2",
  110. default="Title to display above the promo copy",
  111. ),
  112. max_length=255,
  113. ),
  114. ),
  115. migrations.AlterField(
  116. model_name="homepage",
  117. name="featured_section_3",
  118. field=models.ForeignKey(
  119. blank=True,
  120. help_text=wagtail_editable_help.models.HelpText(
  121. "Home page",
  122. "featured section 3",
  123. default="Third featured section for the homepage. Will display up to six child items.",
  124. ),
  125. null=True,
  126. on_delete=django.db.models.deletion.SET_NULL,
  127. related_name="+",
  128. to="wagtailcore.page",
  129. verbose_name="Featured section 3",
  130. ),
  131. ),
  132. migrations.AlterField(
  133. model_name="homepage",
  134. name="featured_section_3_title",
  135. field=models.CharField(
  136. blank=True,
  137. help_text=wagtail_editable_help.models.HelpText(
  138. "Home page",
  139. "featured section title 3",
  140. default="Title to display above the promo copy",
  141. ),
  142. max_length=255,
  143. ),
  144. ),
  145. migrations.AlterField(
  146. model_name="homepage",
  147. name="hero_cta",
  148. field=models.CharField(
  149. help_text=wagtail_editable_help.models.HelpText(
  150. "Home page", "hero CTA", default="Text to display on Call to Action"
  151. ),
  152. max_length=255,
  153. verbose_name="Hero CTA",
  154. ),
  155. ),
  156. migrations.AlterField(
  157. model_name="homepage",
  158. name="hero_cta_link",
  159. field=models.ForeignKey(
  160. blank=True,
  161. help_text=wagtail_editable_help.models.HelpText(
  162. "Home page",
  163. "CTA link",
  164. default="Choose a page to link to for the Call to Action",
  165. ),
  166. null=True,
  167. on_delete=django.db.models.deletion.SET_NULL,
  168. related_name="+",
  169. to="wagtailcore.page",
  170. verbose_name="Hero CTA link",
  171. ),
  172. ),
  173. migrations.AlterField(
  174. model_name="homepage",
  175. name="hero_text",
  176. field=models.CharField(
  177. help_text=wagtail_editable_help.models.HelpText(
  178. "Home page",
  179. "hero text",
  180. default="Write an introduction for the bakery",
  181. ),
  182. max_length=255,
  183. ),
  184. ),
  185. migrations.AlterField(
  186. model_name="homepage",
  187. name="image",
  188. field=models.ForeignKey(
  189. blank=True,
  190. help_text=wagtail_editable_help.models.HelpText(
  191. "Common",
  192. "hero image",
  193. default="Landscape mode only; horizontal width between 1000px and 3000px.",
  194. ),
  195. null=True,
  196. on_delete=django.db.models.deletion.SET_NULL,
  197. related_name="+",
  198. to="wagtailimages.image",
  199. ),
  200. ),
  201. migrations.AlterField(
  202. model_name="homepage",
  203. name="promo_image",
  204. field=models.ForeignKey(
  205. blank=True,
  206. help_text=wagtail_editable_help.models.HelpText(
  207. "Home page", "promo image", default="Promo image"
  208. ),
  209. null=True,
  210. on_delete=django.db.models.deletion.SET_NULL,
  211. related_name="+",
  212. to="wagtailimages.image",
  213. ),
  214. ),
  215. migrations.AlterField(
  216. model_name="homepage",
  217. name="promo_text",
  218. field=wagtail.fields.RichTextField(
  219. blank=True,
  220. help_text=wagtail_editable_help.models.HelpText(
  221. "Home page", "promo text", default="Write some promotional copy"
  222. ),
  223. null=True,
  224. ),
  225. ),
  226. migrations.AlterField(
  227. model_name="homepage",
  228. name="promo_title",
  229. field=models.CharField(
  230. blank=True,
  231. help_text=wagtail_editable_help.models.HelpText(
  232. "Home page",
  233. "promo title",
  234. default="Title to display above the promo copy",
  235. ),
  236. max_length=255,
  237. ),
  238. ),
  239. migrations.AlterField(
  240. model_name="standardpage",
  241. name="image",
  242. field=models.ForeignKey(
  243. blank=True,
  244. help_text=wagtail_editable_help.models.HelpText(
  245. "Common",
  246. "hero image",
  247. default="Landscape mode only; horizontal width between 1000px and 3000px.",
  248. ),
  249. null=True,
  250. on_delete=django.db.models.deletion.SET_NULL,
  251. related_name="+",
  252. to="wagtailimages.image",
  253. ),
  254. ),
  255. migrations.AlterField(
  256. model_name="standardpage",
  257. name="introduction",
  258. field=models.TextField(
  259. blank=True,
  260. help_text=wagtail_editable_help.models.HelpText(
  261. "Standard page", "introduction", default="Text to describe the page"
  262. ),
  263. ),
  264. ),
  265. ]