0002_auto_20170329_0055.py 14 KB

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