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

3222 Commits

Author SHA1 Message Date
Karl Hobley
51b384ece2 Add migration for tests app 2015-02-10 16:59:29 +00:00
Karl Hobley
121d0bdc69 Use builtin wagtail image model in tests
Incase we test with a custom image model in the future
2015-02-10 14:35:40 +00:00
Karl Hobley
8bb392ae58 Use old behaviour when admin_form_fields not set
With deprecation warning
2015-02-10 14:31:07 +00:00
Karl Hobley
6581a78082 Fixed admin_form_fields tests 2015-02-10 14:06:18 +00:00
Karl Hobley
ef8de6180a Added admin_form_fields to Image model
In Django 1.7, creating forms from a model without specifying a list of fields is deprecated.

This commit makes the get_image_form function look for a field called admin_form_fields on the Image model and use that for building the form.
2015-02-10 10:33:09 +00:00
Karl Hobley
01534c99c0 Merge pull request #974 from kaedroho/issue-968
Fixed precision of "fill" operation resizing. Fixes #968
2015-02-09 12:46:12 +00:00
Karl Hobley
98ca98191d Merge pull request #965 from kaedroho/image-vary-stuff
Image vary_key related changes
2015-02-09 12:46:03 +00:00
Karl Hobley
d4ab7e833f Changelog, release notes and contributor entry for #620 2015-02-09 12:39:12 +00:00
Karl Hobley
46e006dbd2 Merge branch 'tucarga-fix-richtext' 2015-02-09 12:36:29 +00:00
Karl Hobley
89bb3787e3 Improvements to #620
As per https://github.com/torchbox/wagtail/pull/620#issuecomment-59203932

Also improved the tests a little bit
2015-02-09 12:35:19 +00:00
Alejandro Varas
357a5c7449 Fixed TypeError raised by richtext template tag 2015-02-09 11:01:41 +00:00
Karl Hobley
cee7b891a7 Merge pull request #971 from benjaoming/patch-1
Remove unused import Image
2015-02-08 14:12:51 +00:00
Karl Hobley
b2b790e387 Improved precision of "fill" operation resizing
Fixes #968
2015-02-08 13:57:07 +00:00
Karl Hobley
a8f53c4b03 Added a failing test for #968 2015-02-08 13:40:35 +00:00
benjaoming
f4b1a3938a Remove unused import Image
Don't see this used anywhere...!?
2015-02-06 21:28:34 -08:00
Karl Hobley
9d9bfc1f08 Merge pull request #969 from kaedroho/warnings-fixes
Some warnings fixes
2015-02-06 17:06:10 +00:00
Karl Hobley
50e4cdf8b8 Replaced SortedDict with OrderedDict 2015-02-06 10:44:25 +00:00
Karl Hobley
d0b0d57ca5 Ignore PendingDeprecationWarnings 2015-02-06 10:44:25 +00:00
Karl Hobley
9cf1a81034 Fixed another reference to django.db.get_models 2015-02-06 10:28:07 +00:00
Karl Hobley
354a5aaa80 Removed reference to django.db.get_models
in resolve_model_string
2015-02-06 10:25:42 +00:00
Karl Hobley
cf0e17d94c Added tests for resolve_model_string
To make sure I don't change its behaviour in the next commit
2015-02-06 10:22:38 +00:00
Dave Cranwell
a5edb0ce0f tweak to zindex of autocomplete widget 2015-02-06 10:03:49 +00:00
Karl Hobley
43641192c2 Fixed a couple of references to django.forms.util 2015-02-06 09:57:42 +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
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