0002_auto_20170329_0055.py 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.10.5 on 2017-03-29 00:55
  3. from django.db import migrations
  4. import wagtail.blocks
  5. import wagtail.fields
  6. import wagtail.embeds.blocks
  7. import wagtail.images.blocks
  8. class Migration(migrations.Migration):
  9. dependencies = [
  10. ("base", "0001_initial"),
  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. 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="pilcrow", 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="Insert an embed URL e.g https://www.youtube.com/watch?v=SGJFWirQ3ks",
  88. icon="media",
  89. template="blocks/embed_block.html",
  90. ),
  91. ),
  92. )
  93. ),
  94. ),
  95. migrations.AlterField(
  96. model_name="gallerypage",
  97. name="body",
  98. field=wagtail.fields.StreamField(
  99. (
  100. (
  101. "heading_block",
  102. wagtail.blocks.StructBlock(
  103. (
  104. (
  105. "heading_text",
  106. wagtail.blocks.CharBlock(
  107. classname="title", required=True
  108. ),
  109. ),
  110. (
  111. "size",
  112. wagtail.blocks.ChoiceBlock(
  113. blank=True,
  114. choices=[
  115. ("", "Select a header size"),
  116. ("h2", "H2"),
  117. ("h3", "H3"),
  118. ("h4", "H4"),
  119. ],
  120. required=False,
  121. ),
  122. ),
  123. )
  124. ),
  125. ),
  126. (
  127. "paragraph_block",
  128. wagtail.blocks.RichTextBlock(
  129. icon="pilcrow", template="blocks/paragraph_block.html"
  130. ),
  131. ),
  132. (
  133. "image_block",
  134. wagtail.blocks.StructBlock(
  135. (
  136. (
  137. "image",
  138. wagtail.images.blocks.ImageChooserBlock(
  139. required=True
  140. ),
  141. ),
  142. ("caption", wagtail.blocks.CharBlock(required=False)),
  143. (
  144. "attribution",
  145. wagtail.blocks.CharBlock(required=False),
  146. ),
  147. )
  148. ),
  149. ),
  150. (
  151. "block_quote",
  152. wagtail.blocks.StructBlock(
  153. (
  154. ("text", wagtail.blocks.TextBlock()),
  155. (
  156. "attribute_name",
  157. wagtail.blocks.CharBlock(
  158. blank=True,
  159. label="e.g. Mary Berry",
  160. required=False,
  161. ),
  162. ),
  163. )
  164. ),
  165. ),
  166. (
  167. "embed_block",
  168. wagtail.embeds.blocks.EmbedBlock(
  169. help_text="Insert an embed URL e.g https://www.youtube.com/watch?v=SGJFWirQ3ks",
  170. icon="media",
  171. template="blocks/embed_block.html",
  172. ),
  173. ),
  174. ),
  175. blank=True,
  176. verbose_name="Page body",
  177. ),
  178. ),
  179. migrations.AlterField(
  180. model_name="homepage",
  181. name="body",
  182. field=wagtail.fields.StreamField(
  183. (
  184. (
  185. "heading_block",
  186. wagtail.blocks.StructBlock(
  187. (
  188. (
  189. "heading_text",
  190. wagtail.blocks.CharBlock(
  191. classname="title", required=True
  192. ),
  193. ),
  194. (
  195. "size",
  196. wagtail.blocks.ChoiceBlock(
  197. blank=True,
  198. choices=[
  199. ("", "Select a header size"),
  200. ("h2", "H2"),
  201. ("h3", "H3"),
  202. ("h4", "H4"),
  203. ],
  204. required=False,
  205. ),
  206. ),
  207. )
  208. ),
  209. ),
  210. (
  211. "paragraph_block",
  212. wagtail.blocks.RichTextBlock(
  213. icon="pilcrow", template="blocks/paragraph_block.html"
  214. ),
  215. ),
  216. (
  217. "image_block",
  218. wagtail.blocks.StructBlock(
  219. (
  220. (
  221. "image",
  222. wagtail.images.blocks.ImageChooserBlock(
  223. required=True
  224. ),
  225. ),
  226. ("caption", wagtail.blocks.CharBlock(required=False)),
  227. (
  228. "attribution",
  229. wagtail.blocks.CharBlock(required=False),
  230. ),
  231. )
  232. ),
  233. ),
  234. (
  235. "block_quote",
  236. wagtail.blocks.StructBlock(
  237. (
  238. ("text", wagtail.blocks.TextBlock()),
  239. (
  240. "attribute_name",
  241. wagtail.blocks.CharBlock(
  242. blank=True,
  243. label="e.g. Mary Berry",
  244. required=False,
  245. ),
  246. ),
  247. )
  248. ),
  249. ),
  250. (
  251. "embed_block",
  252. wagtail.embeds.blocks.EmbedBlock(
  253. help_text="Insert an embed URL e.g https://www.youtube.com/watch?v=SGJFWirQ3ks",
  254. icon="media",
  255. template="blocks/embed_block.html",
  256. ),
  257. ),
  258. ),
  259. blank=True,
  260. verbose_name="Home content block",
  261. ),
  262. ),
  263. migrations.AlterField(
  264. model_name="standardpage",
  265. name="body",
  266. field=wagtail.fields.StreamField(
  267. (
  268. (
  269. "heading_block",
  270. wagtail.blocks.StructBlock(
  271. (
  272. (
  273. "heading_text",
  274. wagtail.blocks.CharBlock(
  275. classname="title", required=True
  276. ),
  277. ),
  278. (
  279. "size",
  280. wagtail.blocks.ChoiceBlock(
  281. blank=True,
  282. choices=[
  283. ("", "Select a header size"),
  284. ("h2", "H2"),
  285. ("h3", "H3"),
  286. ("h4", "H4"),
  287. ],
  288. required=False,
  289. ),
  290. ),
  291. )
  292. ),
  293. ),
  294. (
  295. "paragraph_block",
  296. wagtail.blocks.RichTextBlock(
  297. icon="pilcrow", template="blocks/paragraph_block.html"
  298. ),
  299. ),
  300. (
  301. "image_block",
  302. wagtail.blocks.StructBlock(
  303. (
  304. (
  305. "image",
  306. wagtail.images.blocks.ImageChooserBlock(
  307. required=True
  308. ),
  309. ),
  310. ("caption", wagtail.blocks.CharBlock(required=False)),
  311. (
  312. "attribution",
  313. wagtail.blocks.CharBlock(required=False),
  314. ),
  315. )
  316. ),
  317. ),
  318. (
  319. "block_quote",
  320. wagtail.blocks.StructBlock(
  321. (
  322. ("text", wagtail.blocks.TextBlock()),
  323. (
  324. "attribute_name",
  325. wagtail.blocks.CharBlock(
  326. blank=True,
  327. label="e.g. Mary Berry",
  328. required=False,
  329. ),
  330. ),
  331. )
  332. ),
  333. ),
  334. (
  335. "embed_block",
  336. wagtail.embeds.blocks.EmbedBlock(
  337. help_text="Insert an embed URL e.g https://www.youtube.com/watch?v=SGJFWirQ3ks",
  338. icon="media",
  339. template="blocks/embed_block.html",
  340. ),
  341. ),
  342. ),
  343. blank=True,
  344. verbose_name="Page body",
  345. ),
  346. ),
  347. ]