0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

4223 Commits

Author SHA1 Message Date
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
dc6a53a5fb Missing comma 2015-05-26 16:13:34 +01:00
Karl Hobley
26245ab1d4 Moved apps into root directory 2015-05-26 16:13:34 +01:00
Karl Hobley
b7b5aec0c7 Added search app 2015-05-26 16:13:34 +01:00
Karl Hobley
effa01919f Added home app 2015-05-26 16:13:34 +01:00
Karl Hobley
dc36328407 Added base templates 2015-05-26 16:13:34 +01:00
Karl Hobley
f4af64c8b9 Split up settings files 2015-05-26 16:13:34 +01:00
Karl Hobley
97e793127e Add empty static files 2015-05-26 16:13:34 +01:00
Karl Hobley
9e0ed3df77 Tweaked project template so it works with Wagtail 2015-05-26 16:13:34 +01:00
Karl Hobley
e0c8af0f39 Copied project template from Django 1.8.0 2015-05-26 16:13:34 +01:00
Karl Hobley
accf6f96a2 Deleted old project template 2015-05-26 16:13:34 +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
Harris L.
de7f1b4456 Update creating_pages.rst
Restore a missing `+`.
2015-05-20 12:25:09 -04:00
Karl Hobley
7bbde20c95 Don't make universal wheel files
The wheel file for Python 2 and Python 3 need to be slightly different as unicodecsv cannot be a dependency when using Python 3 (issue #1295)
2015-05-20 10:56:56 +01:00
Karl Hobley
486565332e Add setup.cfg for python wheels
See http://pythonwheels.com/

We support both Python 2 and Python 3 so setting universal to 1 tells wheel to make one file for both
2015-05-20 10:44:47 +01:00
Karl Hobley
e937d7a1a3 Prepare for 1.0 beta 2 release 2015-05-20 09:56:01 +01:00
Karl Hobley
12fbd34483 Fix JavaScript code style error 2015-05-20 09:25:51 +01:00
Karl Hobley
23969890cb Merge remote-tracking branch 'takeflight/refactor/remove-libsass' 2015-05-19 17:25:52 +01:00
Chris Rogers
5cd1e1f14c Merge pull request #1257 from torchbox/feature/1206-update-script
feature/1206 update script
2015-05-19 12:11:30 +01:00
Karl Hobley
9139e6454f Removed the little sites doc
Sites now have some reference documentation in the page models reference
2015-05-18 16:34:42 +01:00
Karl Hobley
ec0c9917c6 Improvements to the page model reference docs 2015-05-18 16:30:55 +01:00
Karl Hobley
6d6863c01d Link to routablepage from "adding endpoints to pages" docs 2015-05-18 15:17:27 +01:00
Karl Hobley
29cd935dc3 Rename queryset reference and privacy pages 2015-05-18 15:12:19 +01:00
Karl Hobley
d2d43dca0a Better formatting for page fields reference
No on the class so they can now be referenced with :meth:
2015-05-18 15:09:12 +01:00
Karl Hobley
01c38e27cd Improvements to cross-linking 2015-05-18 15:09:12 +01:00
Karl Hobley
605fdc62f7 Moved page field reference to page model reference 2015-05-18 15:09:12 +01:00
Karl Hobley
eee3d42735 Update frontend search view docs
We no longer recommend using Wagtails built in search view.

This commit adds an example view that anyone can use in their project instead.
2015-05-18 13:48:41 +01:00
Karl Hobley
2940ea9c9b Fix too short underline 2015-05-18 13:24:48 +01:00
Karl Hobley
1005d438bd Merge pull request #1317 from kaedroho/page-model-docs
Improvements to Page model reference docs
2015-05-18 12:14:28 +01:00
Karl Hobley
9dd4b0391a Improvements to Page model reference docs
- Rename to "Page model reference"
- Add docs for fields
- Add docs for other models such as revisions, group page permissions, etc
2015-05-18 12:14:01 +01:00
Karl Hobley
980a29d839 Tweaks to editing api docs
Based on feedback from @tomdyson on #1310
2015-05-18 10:49:12 +01:00
Karl Hobley
845b6a5772 Merge pull request #1310 from kaedroho/editing-api-tweaks
Some tweaks to the editing API docs
2015-05-18 10:44:54 +01:00
Karl Hobley
b078bb755a Spellchecked editing api docs 2015-05-18 10:44:07 +01:00
Karl Hobley
e04fa2b471 Merge rich text docs 2015-05-18 10:43:36 +01:00