Matt Westcott
9a864ff6c9
split up tests for RichText() and RichTextBlock.get_default()
2015-06-01 14:46:24 +01:00
Matt Westcott
1c510a04c8
RichText should not be imported from wagtailcore.blocks
2015-06-01 14:40:51 +01:00
Matt Westcott
4da28acb2a
Add a 'RichText' value type, and use it as the native value of RichTextBlock
...
This means that they consistently render as rich text regardless of how they are output onto the template (as a child of StreamBlock or StructBlock; with or without a |richtext filter).
2015-06-01 13:59:32 +01:00
Karl Hobley
eec194f154
Added missing "versionadded"
2015-06-01 09:54:17 +01:00
Karl Hobley
0b0a97ff28
Update 1.0.rst
2015-06-01 09:52:29 +01:00
Karl Hobley
82c04f56f6
Fix typo
2015-06-01 09:51:08 +01:00
Matt Westcott
7938099a21
Merge branch 'bgrace-feature/optional-richtextblocks'
2015-05-30 11:20:24 +01:00
Matt Westcott
15a5f7494c
Merge branch 'feature/optional-richtextblocks' of https://github.com/bgrace/wagtail into bgrace-feature/optional-richtextblocks
2015-05-30 11:17:16 +01:00
Matt Westcott
1167cd0484
Make StructBlock.clean return a StructValue, not a dict - fixes #1355
2015-05-29 21:12:58 +01:00
Karl Hobley
3188fc031a
Added a link to AUTO_UPDATE docs from release notes
2015-05-29 17:00:09 +01:00
Matt Westcott
f5218910c4
Merge branch 'kaedroho-search-auto-update'
2015-05-29 16:24:38 +01:00
Matt Westcott
e2a44fe0a5
release note for #1349
2015-05-29 16:24:23 +01:00
Matt Westcott
eaa100367f
Merge branch 'search-auto-update' of https://github.com/kaedroho/wagtail into kaedroho-search-auto-update
2015-05-29 15:58:29 +01:00
Karl Hobley
9885d2fb7d
Fix typos
2015-05-29 14:21:08 +01:00
Karl Hobley
d0df0c225b
Merge pull request #1352 from gasman/block-value-conversion
...
Make Block value type handling more consistent
2015-05-29 14:06:26 +01:00
Karl Hobley
1e0a203f86
Added tests for get_search_backends
2015-05-29 14:05:11 +01:00
Karl Hobley
77d143a099
Some edits to model reference
2015-05-29 12:53:48 +01:00
Karl Hobley
16315403fc
Added upgrade consideration for admin_form_fields
2015-05-29 12:05:52 +01:00
Karl Hobley
afda401956
Document admin_form_fields
2015-05-29 11:57:25 +01:00
Karl Hobley
c670f1a8e7
Indexing {non-page => custom} models
2015-05-29 11:23:31 +01:00
Karl Hobley
e4ee711043
Removed Pagination from the example search view
...
Makes the searching bit easier to see. Leave pagination as an exercise for the reader
2015-05-29 11:20:05 +01:00
Karl Hobley
e7c61b13b1
Improve docs for WAGTAILSEARCH_BACKENDS setting
...
Including docs for new AUTO_UPDATE parameter
2015-05-29 11:04:54 +01:00
Karl Hobley
c837afdfa2
Disabled AUTO_UPDATE on Elasticsearch backend in tests
2015-05-29 10:49:39 +01:00
Karl Hobley
72db917ddc
Add AUTO_UPDATE option to backend parameters
...
By default, Wagtail will keep all search indexes up to date using signal handlers.
This is sometimes not needed/wanted. This PR allows auto-update to be configured on a per-index basis.
2015-05-29 10:49:39 +01:00
Karl Hobley
640383ad29
Updates to search backends docs
2015-05-29 10:49:16 +01:00
Matt Westcott
a91ad071c0
Avoid calling to_python when retrieving form field values in FieldBlock.
...
to_python and get_prep_value should only be used for serialising / deserialising between native block values and their JSONish representations. Instead, we add two new methods value_for_form and value_from_form to handle any necessary conversions between form values and block values.
2015-05-28 17:14:14 +01:00
Karl Hobley
c3a4a30719
Wording tweak
2015-05-28 15:18:51 +01:00
Karl Hobley
a0ddfc9fec
Tweak to the RoutablePageMixin examples
...
Use view names as defined in the example above
2015-05-28 15:18:18 +01:00
Karl Hobley
0662f915ad
Reordered 1.0 upgrade considerations
2015-05-28 15:03:48 +01:00
Dan Braghis
bce460a09c
Merge pull request #1351 from kaedroho/docs-restructure-again
...
Further docs restructuring
2015-05-28 14:15:41 +01:00
Karl Hobley
1ba7e645fd
Renamed howto to advanced topics
2015-05-28 12:58:50 +01:00
Karl Hobley
2e0dcc88d5
Moved some of the reference docs into topics
2015-05-28 12:57:00 +01:00
Matt Westcott
deb9df4185
Be consistent about what kind of value the 'default' of a Block is.
...
Most places assume that it's the block's native value type (e.g. ListBlock.html_declarations calls child_block.render_form with it), but StructBlock erroneously calls to_python on it (which would imply that it's expecting a JSONish value), and some native value types (e.g. StreamValue / StructValue) can't be passed as defaults because they contain a reference to the not-yet-constructed block object.
To get around this, we introduce a block.get_default() method which is guaranteed to return a native value (performing type conversions when the 'default' passed in the constructor / meta class isn't one already) and avoid calling to_python on this return value.
2015-05-28 11:53:42 +01:00
Dave Cranwell
bd45a12efd
Simplified getting started section
2015-05-28 10:13:05 +01:00
Karl Hobley
ca0085c68d
Update Willow to 0.2.1
2015-05-27 14:33:35 +01:00
Karl Hobley
f2012bcde0
Merge pull request #1319 from kaedroho/more-pages-docs-tweaks
...
Various improvements to pages docs
2015-05-27 09:47:34 +01:00
Karl Hobley
a177a69824
Merge pull request #1306 from kaedroho/custom-image-model-docs
...
Add docs for custom image models
2015-05-27 09:40:52 +01:00
Karl Hobley
30eed43d10
Merge pull request #1318 from kaedroho/frontend-search-docs
...
Update frontend search view docs
2015-05-27 09:40:39 +01:00
Karl Hobley
9c48f65972
Changelog/release notes
2015-05-26 14:00:52 +01:00
Karl Hobley
2aecf870a6
Merge pull request #1297 from kaedroho/fetch-translations-script
...
Add fetch-translations.sh
2015-05-26 13:42:23 +01:00
Dave Cranwell
c18bab66c6
Tracking/Phone Home/Upgrade notification
2015-05-26 13:35:07 +01:00
Karl Hobley
589bc3e562
Added a reason for skipping a test
2015-05-26 11:24:53 +01:00
Karl Hobley
99daa36e1d
Fix a missing bracket
2015-05-26 11:21:37 +01:00
Karl Hobley
ded91decb6
Skip a sendfile test under Django 1.8
...
As per bbdb4379a0 (commitcomment-11084140)
2015-05-26 11:18:37 +01:00
Matt Westcott
1248a0bab0
update comment on Block.clean re the use of ValidationError params
2015-05-26 01:06:13 +01:00
Matt Westcott
71af8b4817
Merge pull request #1337 from gasman/feature/lazy-streamvalue
...
Implement lazy evaluation in StreamValue - fixes #1200
2015-05-25 22:26:07 +01:00
Matt Westcott
c4064024d0
Implement lazy evaluation of raw JSONish stream data in StreamValue - fixes #1200
2015-05-25 22:14:44 +01:00
Karl Hobley
2ef88b0307
Use wagtail-ci image on Drone
2015-05-25 16:13:12 +01:00
Matt Westcott
c6e539db32
Failing tests for StreamField lazy evaluation, from #1335
2015-05-22 22:37:03 +01:00
Karl Hobley
e068fa8290
Merge pull request #1327 from harrislapiroff/patch-1
...
Missing + in docs.
2015-05-20 17:26:07 +01:00