Wykres commitów

3351 Commity (fc12d86279008546d67cac6fcc689d8fe784adc1)

Autor SHA1 Wiadomość Data
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
Dave Cranwell e7a19de235 updated styleguide to demonstrate generic image/doc/page picker ui 2015-02-04 17:09:19 +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
Matt Westcott 6faf4f3722 Pass InlinePanel's widget overrides as part of the required_formsets spec, so there's no need for a separate widget_overrides method 2015-02-03 13:29:17 +00:00
Matt Westcott 25a514ae5c add test for widget overriding within an InlinePanel 2015-02-03 13:12:22 +00:00
Matt Westcott cc237c1750 Update EditHandler.required_formsets to return a dict (as supported by django-modelcluster 0.5), so that InlinePanel can specify the exact fields to use 2015-02-03 12:58:39 +00:00
Matt Westcott 18c77b83a6 reinstate render_missing_fields - it turns out we need it in order to render the id / DELETE / ORDER etc hidden fields on inline panels 2015-02-03 12:58:39 +00:00
Matt Westcott 8ae1ccdff6 update comment on render_form_content, since the concept of 'unaccounted-for fields' no longer applies 2015-02-03 12:58:39 +00:00
Matt Westcott f821eafa26 negate the test for #338 / #922, to confirm that this is fixed 2015-02-03 12:58:39 +00:00
Matt Westcott 30f2049727 add content_panels definition to TaggedPage, so that TestIssue197 is not relying on the 'tags' field being output as a stray non-panel field (which it isn't any more) 2015-02-03 12:58:39 +00:00
Matt Westcott ba19fd395d Update edit_handlers tests to reflect the change from rendered_fields to required_fields 2015-02-03 12:58:39 +00:00
Matt Westcott 8d903e9936 Replace rendered_fields method of EditHandler with a class method required_fields, and use that to tell get_form_for_model what fields the form should include. This means we can eliminate render_missing_fields, since the form no longer includes extraneous fields 2015-02-03 12:55:23 +00:00
Chris Rogers 7d792151c2 Merge pull request #946 from gasman/fix/ignore-middleware-responses
Ignore middleware responses when building dummy request
2015-02-03 12:21:09 +00:00
Matt Westcott 55cac3b907 upgrade django-modelcluster to 0.5 2015-02-03 11:11:42 +00:00
Karl Hobley 6a8c26d0ad Release note for #942 2015-02-03 10:48:44 +00:00
Karl Hobley 46bb9de808 Added @frankwiles to contributors 2015-02-03 10:48:15 +00:00
Karl Hobley fcd0e19bc5 Changelog for #942 2015-02-03 10:47:29 +00:00
Karl Hobley d1353265f6 Merge pull request #942 from revsys/blank_title_validation
Ensure title and seo_title are not whitespace
2015-02-03 10:45:54 +00:00
Dan Braghis 800c5ba265 Add release notes for #913 2015-02-02 21:35:32 +00:00
Dan Braghis 1a9ba7c64b Merge pull request #913 from kaedroho/admin-cache-settings
Globally set cache headers for the admin interface
2015-02-02 21:31:39 +00:00
Karl Hobley 1049b3ff2d Also set max-age=0 on all admin views 2015-02-02 17:42:24 +00:00
Karl Hobley dbefb725d1 Merge pull request #949 from gasman/fix/edithandler-tests-2
Better tests for edit handlers, part 2
2015-02-02 17:15:19 +00:00
Karl Hobley 4efed6b041 Update CHANGELOG.txt 2015-02-02 11:45:56 +00:00
Matt Westcott 6252bd8dc9 python3 fix 2015-01-30 19:59:25 +00:00
Matt Westcott b2dfc84b61 test that InlinePanel renders the necessary hidden fields 2015-01-30 19:35:37 +00:00
Matt Westcott 9adb66f052 move InlinePanel.render_js_init tests into main render tests; add a test for #338; remove all remaining mock stuff from test_edit_handlers 2015-01-30 17:14:29 +00:00
Matt Westcott 331250e5c6 use real models for render tests on InlinePanel 2015-01-30 16:59:59 +00:00
Matt Westcott 2480a97b24 more relevant tests for PageChooserPanel 2015-01-30 15:48:47 +00:00
Matt Westcott ce3a0e26dc better-behaved initialisation of PageChooserPanel (the second parameter is the page type to filter on, not the current model) 2015-01-30 13:39:39 +00:00
Matt Westcott 3f6fb92b62 Ignore middleware responses when building dummy request, so that middlewares that enforce HTTPS / basic auth etc don't block the preview mechanism 2015-01-29 15:24:06 +00:00
Matt Westcott 995b1e1411 Merge pull request #945 from kaedroho/treebeard-3
Update to treebeard 3.0. Fixes #930
2015-01-29 13:43:44 +00:00
Matt Westcott e8ff31112f Merge branch 'revsys-admin_branding' 2015-01-29 13:41:22 +00:00