Matt Westcott
91dd196a24
Merge branch 'feature/streamfield' of github.com:torchbox/wagtail into feature/streamfield
2015-02-05 16:34:00 +00:00
Matt Westcott
e223cac658
call expand_db_html in the native rendering of RichTextBlock
2015-02-05 16:33:52 +00:00
Karl Hobley
0cff753544
Blocks tests tweaks
2015-02-05 16:26:39 +00:00
Matt Westcott
f3a66d34af
implement RichTextBlock, and ensure that script tags embedded in html_declarations bodies are properly escaped
2015-02-05 16:23:31 +00:00
Karl Hobley
863cffeb36
Tests for StreamBlock
2015-02-05 16:04:29 +00:00
Dave Cranwell
144a130e44
stream menu should use label for the button it creates
2015-02-05 15:53:53 +00:00
Dave Cranwell
151a8da6d9
Merge branch 'feature/streamfield' of github.com:torchbox/wagtail into feature/streamfield
2015-02-05 15:42:54 +00:00
Dave Cranwell
f04c407ffb
add suitable icons to wagtail's own icon set and allowing user to define icon for each streamfield block
2015-02-05 15:42:52 +00:00
Karl Hobley
161aa50a9e
Test tweaks
2015-02-05 15:33:42 +00:00
Matt Westcott
959feec13a
Merge branch 'feature/streamfield' of github.com:torchbox/wagtail into feature/streamfield
2015-02-05 15:02:42 +00:00
Matt Westcott
2ad0366fa0
make the base Block.render template-aware, so that any subclass can define a 'template' property to override the default rendering (which is now provided by block.render_basic())
2015-02-05 15:00:56 +00:00
Karl Hobley
c115addf1a
Added tests for ListBlock
2015-02-05 13:09:50 +00:00
Matt Westcott
3f82c1bc0b
Merge branch 'feature/streamfield' of github.com:torchbox/wagtail into feature/streamfield
2015-02-05 12:31:34 +00:00
Matt Westcott
ac1bee89c9
Have StreamChild.__str__ return the child's native rendering so that it's usable on templates. (StreamChild isn't just syntactic sugar after all, then...)
2015-02-05 12:31:24 +00:00
Karl Hobley
bafd5dca3c
Tests for StructBlock
2015-02-05 12:30:15 +00:00
Matt Westcott
6f1740b08b
add some syntactic sugar so that we can refer to child.block_type when looping over a StreamValue
2015-02-05 12:23:26 +00:00
Matt Westcott
26d6022752
Merge branch 'feature/streamfield' of github.com:torchbox/wagtail into feature/streamfield
2015-02-05 12:08:40 +00:00
Matt Westcott
94a248055b
Refactor StreamValue so that it behaves as a sequence of BoundBlocks rather than a sequence of values
2015-02-05 12:08:33 +00:00
Karl Hobley
36ed0ec99d
Added tests for FieldBlock
2015-02-05 11:48:37 +00:00
Dave Cranwell
67b0ffd09c
beginning styling of stream menus
2015-02-05 11:40:37 +00:00
Matt Westcott
2a485e499e
define the default value of a StreamBlock to be an empty StreamValue, not a list
2015-02-05 11:22:17 +00:00
Matt Westcott
89e5f74521
StreamField.to_python needs to return an empty StreamValue for None, not an empty list
2015-02-05 11:12:21 +00:00
Matt Westcott
53e1ee44e5
ditch HeadingBlock in favour of a CharBlock that doesn't know its own native rendering
2015-02-05 10:46:59 +00:00
Dave Cranwell
182aa6922a
added suitable message when no snippets of a particular type exist
2015-02-05 09:34:07 +00:00
Karl Hobley
382004e13b
Merge branch 'feature/drop-inlinepanel-basemodel-param'
2015-02-04 21:08:28 +00:00
Karl Hobley
54210e9fe4
Fixed test
...
Dictionary was being mutated while iterating over its values.
2015-02-04 21:07:11 +00:00
Karl Hobley
0564bd6880
Add fields into vary even if they dont have a value
2015-02-04 20:58:10 +00:00
Karl Hobley
09f053ce1e
Make vary_key a blank string if there are no vary fields
...
This addresses an issue which causes all renditions in a project to be regenerated after an upgrade to Wagtail 0.9.
2015-02-04 20:49:45 +00:00
Karl Hobley
3b37a52a25
Replaced get_vary with vary_fields
2015-02-04 20:44:41 +00:00
Karl Hobley
577183ba89
Added some tests for vary key generation
2015-02-04 20:19:17 +00:00
Matt Westcott
0afb1a3b50
make StreamField behave correctly for migrations
2015-02-04 19:03:15 +00:00
Dave Cranwell
e7a19de235
updated styleguide to demonstrate generic image/doc/page picker ui
2015-02-04 17:09:19 +00:00
Matt Westcott
7f3c0f5af0
Pick up the StreamBlock definition from the model field, so that we don't need to pass it to the StreamFieldPanel constructor
2015-02-04 16:56:35 +00:00
Matt Westcott
00f50781d1
Merge branch 'master' into feature/streamfield-frontend
...
Conflicts:
wagtail/wagtailadmin/edit_handlers.py
2015-02-04 16:47:14 +00:00
Dave Cranwell
e5e79d2e2b
fixing ugly text flush against menu edge
2015-02-04 16:42:03 +00:00
Dave Cranwell
589319d466
removed pointless difference in buttons izes
2015-02-04 16:37:13 +00:00
Karl Hobley
88812b4cae
Release notes for #957 and #960
2015-02-04 16:17:16 +00:00
Karl Hobley
ed6e13f171
Changelogs for #957 and #960
2015-02-04 16:15:58 +00:00
Matt Westcott
6b256ed89f
fix deprecation warnings to give a correct error line, and ignore warnings thrown by test_invalid_inlinepanel_declaration
2015-02-04 16:13:38 +00:00
Matt Westcott
547c29faf5
Deprecate the base_model parameter on InlinePanel - fixes #405
2015-02-04 16:13:38 +00:00
Karl Hobley
ed9a8d1169
Merge pull request #960 from gasman/feature/model-aware-edithandlers
...
Refactor edit handler classes so that they can have a persistent reference to their corresponding model
2015-02-04 16:12:43 +00:00
Tom Talbot
f9da1c5ed8
Added Sebastian Spiegel to contributors
2015-02-04 16:00:59 +00:00
Tom Talbot
67369f4e6c
Release notes for #825
2015-02-04 16:00:38 +00:00
Tom Talbot
27048acda7
Changelog for #825
2015-02-04 16:00:13 +00:00
Tom Talbot
c38e3e1b6e
Merge pull request #825 from Tivix/fix-multiword-tags-save
...
Fix saving a single tag with multiple words in it, fixes #824
2015-02-04 15:48:37 +00:00
Karl Hobley
e9b0f8d928
Merge pull request #957 from gasman/fix/stray-form-fields-2
...
Stop missing panels from displaying as stray unlabelled fields - fixes #338 and #922
2015-02-04 09:38:55 +00:00
Matt Westcott
d82069543f
Merge pull request #959 from zerolab/docs-wagtail-planet
...
Add third-party tutorials page to docs
2015-02-03 23:22:38 +00:00
Matt Westcott
121c01c7f7
Refactor edit handler classes so that they can have a persistent reference to their corresponding model.
...
Previously, TabbedInterface, ObjectList, FieldPanel et al were factory functions that yield a class that has no knowledge of their corresponding models. These are now classes in their own right, meaning that when we place them in a content_panels definition, we end up with a list of 'panel definition' objects rather than a list of EditHandler classes. These panel definition objects can be 'traded in' for a proper EditHandler class by calling bind_to_model(model) - this means that our EditHandler classes are now aware of the model they are attached to.
Since bind_to_model(model) returns a fresh class each time it is called, the panel definition objects can be shared between models with no issues - so we can still make use of common definitions like wagtaildemo's LinkFields.panels.
2015-02-03 23:00:08 +00:00
Dan Braghis
0aaee7bb47
Add docs page for third-party tutorials
2015-02-03 22:29:28 +00:00
Matt Westcott
401c50ca5d
Merge pull request #955 from gasman/fix/modelcluster-0.5
...
upgrade django-modelcluster to 0.5
2015-02-03 16:53:05 +00:00