0010_auto_20220913_0905.py 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. # Generated by Django 3.2.15 on 2022-09-13 09:05
  2. from django.db import migrations
  3. import wagtail.blocks
  4. import wagtail.embeds.blocks
  5. import wagtail.fields
  6. import wagtail.images.blocks
  7. import wagtail_editable_help.models
  8. class Migration(migrations.Migration):
  9. dependencies = [
  10. ("base", "0009_auto_20220823_1659"),
  11. ]
  12. operations = [
  13. migrations.AlterField(
  14. model_name="formpage",
  15. name="body",
  16. field=wagtail.fields.StreamField(
  17. [
  18. (
  19. "heading_block",
  20. wagtail.blocks.StructBlock(
  21. [
  22. (
  23. "heading_text",
  24. wagtail.blocks.CharBlock(
  25. form_classname="title", required=True
  26. ),
  27. ),
  28. (
  29. "size",
  30. wagtail.blocks.ChoiceBlock(
  31. blank=True,
  32. choices=[
  33. ("", "Select a header size"),
  34. ("h2", "H2"),
  35. ("h3", "H3"),
  36. ("h4", "H4"),
  37. ],
  38. required=False,
  39. ),
  40. ),
  41. ]
  42. ),
  43. ),
  44. (
  45. "paragraph_block",
  46. wagtail.blocks.RichTextBlock(
  47. icon="fa-paragraph", template="blocks/paragraph_block.html"
  48. ),
  49. ),
  50. (
  51. "image_block",
  52. wagtail.blocks.StructBlock(
  53. [
  54. (
  55. "image",
  56. wagtail.images.blocks.ImageChooserBlock(
  57. required=True
  58. ),
  59. ),
  60. ("caption", wagtail.blocks.CharBlock(required=False)),
  61. (
  62. "attribution",
  63. wagtail.blocks.CharBlock(required=False),
  64. ),
  65. ]
  66. ),
  67. ),
  68. (
  69. "block_quote",
  70. wagtail.blocks.StructBlock(
  71. [
  72. ("text", wagtail.blocks.TextBlock()),
  73. (
  74. "attribute_name",
  75. wagtail.blocks.CharBlock(
  76. blank=True,
  77. label="e.g. Mary Berry",
  78. required=False,
  79. ),
  80. ),
  81. ]
  82. ),
  83. ),
  84. (
  85. "embed_block",
  86. wagtail.embeds.blocks.EmbedBlock(
  87. help_text=wagtail_editable_help.models.HelpText(
  88. "Common",
  89. "embed block",
  90. default="Insert an embed URL e.g https://www.youtube.com/embed/SGJFWirQ3ks",
  91. ),
  92. icon="fa-s15",
  93. template="blocks/embed_block.html",
  94. ),
  95. ),
  96. ],
  97. use_json_field=True,
  98. ),
  99. ),
  100. migrations.AlterField(
  101. model_name="gallerypage",
  102. name="body",
  103. field=wagtail.fields.StreamField(
  104. [
  105. (
  106. "heading_block",
  107. wagtail.blocks.StructBlock(
  108. [
  109. (
  110. "heading_text",
  111. wagtail.blocks.CharBlock(
  112. form_classname="title", required=True
  113. ),
  114. ),
  115. (
  116. "size",
  117. wagtail.blocks.ChoiceBlock(
  118. blank=True,
  119. choices=[
  120. ("", "Select a header size"),
  121. ("h2", "H2"),
  122. ("h3", "H3"),
  123. ("h4", "H4"),
  124. ],
  125. required=False,
  126. ),
  127. ),
  128. ]
  129. ),
  130. ),
  131. (
  132. "paragraph_block",
  133. wagtail.blocks.RichTextBlock(
  134. icon="fa-paragraph", template="blocks/paragraph_block.html"
  135. ),
  136. ),
  137. (
  138. "image_block",
  139. wagtail.blocks.StructBlock(
  140. [
  141. (
  142. "image",
  143. wagtail.images.blocks.ImageChooserBlock(
  144. required=True
  145. ),
  146. ),
  147. ("caption", wagtail.blocks.CharBlock(required=False)),
  148. (
  149. "attribution",
  150. wagtail.blocks.CharBlock(required=False),
  151. ),
  152. ]
  153. ),
  154. ),
  155. (
  156. "block_quote",
  157. wagtail.blocks.StructBlock(
  158. [
  159. ("text", wagtail.blocks.TextBlock()),
  160. (
  161. "attribute_name",
  162. wagtail.blocks.CharBlock(
  163. blank=True,
  164. label="e.g. Mary Berry",
  165. required=False,
  166. ),
  167. ),
  168. ]
  169. ),
  170. ),
  171. (
  172. "embed_block",
  173. wagtail.embeds.blocks.EmbedBlock(
  174. help_text=wagtail_editable_help.models.HelpText(
  175. "Common",
  176. "embed block",
  177. default="Insert an embed URL e.g https://www.youtube.com/embed/SGJFWirQ3ks",
  178. ),
  179. icon="fa-s15",
  180. template="blocks/embed_block.html",
  181. ),
  182. ),
  183. ],
  184. blank=True,
  185. use_json_field=True,
  186. verbose_name="Page body",
  187. ),
  188. ),
  189. migrations.AlterField(
  190. model_name="homepage",
  191. name="body",
  192. field=wagtail.fields.StreamField(
  193. [
  194. (
  195. "heading_block",
  196. wagtail.blocks.StructBlock(
  197. [
  198. (
  199. "heading_text",
  200. wagtail.blocks.CharBlock(
  201. form_classname="title", required=True
  202. ),
  203. ),
  204. (
  205. "size",
  206. wagtail.blocks.ChoiceBlock(
  207. blank=True,
  208. choices=[
  209. ("", "Select a header size"),
  210. ("h2", "H2"),
  211. ("h3", "H3"),
  212. ("h4", "H4"),
  213. ],
  214. required=False,
  215. ),
  216. ),
  217. ]
  218. ),
  219. ),
  220. (
  221. "paragraph_block",
  222. wagtail.blocks.RichTextBlock(
  223. icon="fa-paragraph", template="blocks/paragraph_block.html"
  224. ),
  225. ),
  226. (
  227. "image_block",
  228. wagtail.blocks.StructBlock(
  229. [
  230. (
  231. "image",
  232. wagtail.images.blocks.ImageChooserBlock(
  233. required=True
  234. ),
  235. ),
  236. ("caption", wagtail.blocks.CharBlock(required=False)),
  237. (
  238. "attribution",
  239. wagtail.blocks.CharBlock(required=False),
  240. ),
  241. ]
  242. ),
  243. ),
  244. (
  245. "block_quote",
  246. wagtail.blocks.StructBlock(
  247. [
  248. ("text", wagtail.blocks.TextBlock()),
  249. (
  250. "attribute_name",
  251. wagtail.blocks.CharBlock(
  252. blank=True,
  253. label="e.g. Mary Berry",
  254. required=False,
  255. ),
  256. ),
  257. ]
  258. ),
  259. ),
  260. (
  261. "embed_block",
  262. wagtail.embeds.blocks.EmbedBlock(
  263. help_text=wagtail_editable_help.models.HelpText(
  264. "Common",
  265. "embed block",
  266. default="Insert an embed URL e.g https://www.youtube.com/embed/SGJFWirQ3ks",
  267. ),
  268. icon="fa-s15",
  269. template="blocks/embed_block.html",
  270. ),
  271. ),
  272. ],
  273. blank=True,
  274. use_json_field=True,
  275. verbose_name="Home content block",
  276. ),
  277. ),
  278. migrations.AlterField(
  279. model_name="standardpage",
  280. name="body",
  281. field=wagtail.fields.StreamField(
  282. [
  283. (
  284. "heading_block",
  285. wagtail.blocks.StructBlock(
  286. [
  287. (
  288. "heading_text",
  289. wagtail.blocks.CharBlock(
  290. form_classname="title", required=True
  291. ),
  292. ),
  293. (
  294. "size",
  295. wagtail.blocks.ChoiceBlock(
  296. blank=True,
  297. choices=[
  298. ("", "Select a header size"),
  299. ("h2", "H2"),
  300. ("h3", "H3"),
  301. ("h4", "H4"),
  302. ],
  303. required=False,
  304. ),
  305. ),
  306. ]
  307. ),
  308. ),
  309. (
  310. "paragraph_block",
  311. wagtail.blocks.RichTextBlock(
  312. icon="fa-paragraph", template="blocks/paragraph_block.html"
  313. ),
  314. ),
  315. (
  316. "image_block",
  317. wagtail.blocks.StructBlock(
  318. [
  319. (
  320. "image",
  321. wagtail.images.blocks.ImageChooserBlock(
  322. required=True
  323. ),
  324. ),
  325. ("caption", wagtail.blocks.CharBlock(required=False)),
  326. (
  327. "attribution",
  328. wagtail.blocks.CharBlock(required=False),
  329. ),
  330. ]
  331. ),
  332. ),
  333. (
  334. "block_quote",
  335. wagtail.blocks.StructBlock(
  336. [
  337. ("text", wagtail.blocks.TextBlock()),
  338. (
  339. "attribute_name",
  340. wagtail.blocks.CharBlock(
  341. blank=True,
  342. label="e.g. Mary Berry",
  343. required=False,
  344. ),
  345. ),
  346. ]
  347. ),
  348. ),
  349. (
  350. "embed_block",
  351. wagtail.embeds.blocks.EmbedBlock(
  352. help_text=wagtail_editable_help.models.HelpText(
  353. "Common",
  354. "embed block",
  355. default="Insert an embed URL e.g https://www.youtube.com/embed/SGJFWirQ3ks",
  356. ),
  357. icon="fa-s15",
  358. template="blocks/embed_block.html",
  359. ),
  360. ),
  361. ],
  362. blank=True,
  363. use_json_field=True,
  364. verbose_name="Page body",
  365. ),
  366. ),
  367. ]