Commit graph

6003 commits

Author SHA1 Message Date
Matt Westcott
6b35aa74a6 CSS lint fix 2016-05-09 19:05:43 +01:00
Matt Westcott
3ac9c457eb Add semi-transparent border around explorer menu
Fixes #2519. Fix provided by @alexgleason
2016-05-09 19:03:34 +01:00
Matt Westcott
b3ffe2baf0 Avoid relying on permission_types ordering in test_group_edit_loads_with_page_permissions_shown 2016-05-03 20:50:18 +01:00
Matt Westcott
a171cb0743 Forcibly delete ELASTICSEARCH_URL from environment to skip those tests unless --elasticsearch specified
Conflicts:
	runtests.py
2016-05-03 19:19:18 +01:00
Matt Westcott
e3fbe06f81 version-bump gulp-sass (the latest node-sass breaks compatibility with 2.0... I think) 2016-05-03 16:48:41 +01:00
Matt Westcott
2e48901f38 Make elasticsearch switchable in tox, allow ES failures in travis 2016-05-03 15:02:46 +01:00
Matt Westcott
5976e66cfb Move tests for Page.base_form_class / get_form_class to wagtailadmin - fixes #2428 2016-05-03 12:13:37 +01:00
Tim Heap
f9b39e5890 Do not get message classes from MESSAGE_TAGS
If the developer had overridden MESSAGE_TAGS in their site, Wagtail
messages used these classes in the admin. This caused the messages to
lose their styles.

Wagtail now ignores the MESSAGE_TAGS setting, using the default classes
defined in `django.contrib.messages.constants.LEVEL_TAGS`.

Fixes #2551

Conflicts:
	wagtail/tests/testapp/urls.py
	wagtail/wagtailadmin/templatetags/wagtailadmin_tags.py
2016-05-03 11:52:09 +01:00
kapito
7a0d37f6e9 Prevent spinner from spinning on required form entry 2016-05-03 00:08:37 +01:00
Matt Westcott
9bf921f611 Release note for #2499 2016-04-28 16:25:01 +01:00
Robert Rollins
efceeba241 Updated Page.dummy_request() to be able to handle ALLOWED_HOSTS = ['*']. 2016-04-28 16:24:56 +01:00
Matt Westcott
e70bd15179 Tests for Page.dummy_request, including failing test for #2499 2016-04-28 16:24:50 +01:00
Matt Westcott
b42cceb14f Release note for #2501 2016-04-28 15:20:27 +01:00
Jason Morrison
307364e3cd Check before unregistering Group model admin
Fixes exception:
    django.contrib.admin.sites.NotRegistered: The model Group is not registered
2016-04-28 15:17:59 +01:00
Matt Westcott
90742f2b59 Release note for #2495 2016-04-28 14:55:06 +01:00
Nick Smith
d01a5ef8be #2281 add tests, and refactor redirects, to handle duplicates with query strings 2016-04-28 14:51:47 +01:00
Nick Smith
e5e95b5bce #2281 fix issue when multiple redirects are returned for a path 2016-04-28 14:51:40 +01:00
Matt Westcott
e475f736d0 Release note for #2526 2016-04-28 13:12:32 +01:00
Matt Westcott
4c96595d90 Add a disableDirtyFormCheck function so we're not relying on sharing variables between scripts 2016-04-28 13:09:52 +01:00
kapito
cc7e6196c5 Fix keyboard shortcuts such as Ctrl+S giving unnecessary warning 2016-04-28 13:09:46 +01:00
kapito
15e5225d4b Add global declaration to $prop assignment. 2016-04-27 21:32:31 +01:00
Matt Westcott
ad7264fffb failing test for #2511 for document uploader
Make collection field on document chooser upload respect user permissions

failing test for #2511 for image uploader

Make collection field on image chooser upload respect user permissions
2016-04-26 19:48:34 +03:00
Tim Heap
aaefb81b60 Correctly construct Meta class for multi-inherited Blocks
Conflicts:
	CHANGELOG.txt
	docs/releases/1.5.rst
	wagtail/wagtailcore/blocks/base.py
2016-04-19 14:13:10 +01:00
Karl Hobley
0011fc08a1 Extra space 2016-04-18 23:21:24 +01:00
Karl Hobley
333aac4b99 Changelog for #2488 2016-04-18 23:19:21 +01:00
Matt Westcott
52e38f2024 Make wagtailuserbar tag gracefully handle the absence of a 'request' variable (#2488) 2016-04-18 23:13:30 +01:00
Karl Hobley
0519cea232 Prepare for 1.4.3 release 2016-04-04 21:38:24 +01:00
Karl Hobley
a0916b1c4c Changelog/release note for #2438 2016-04-04 17:17:13 +01:00
Karl Hobley
2b936a00e5 Do not use ContentTypes in PageChooserPanel
Using ContentTypes can lead to the awkward case where they are used

before the database is migrated, leading to errors on start up. Removing

ContentTypes and using plain Model classes instead makes this

impossible, and also makes the code clearer.



Fixes #2433
2016-04-04 17:05:48 +01:00
Karl Hobley
7dbe8d6d60 Version bump to 1.4.2 2016-03-31 10:10:19 +01:00
Karl Hobley
3df3d5bfb5 1.4.2 no longer in development 2016-03-31 10:09:35 +01:00
Karl Hobley
45e170eeae Tweaks to changelog message 2016-03-30 22:29:06 +01:00
Karl Hobley
cad9f22eb1 Removed unused import 2016-03-30 22:09:46 +01:00
Tim Heap
e00314055c Use add_arguments over deprecated option_list 2016-03-30 22:00:13 +01:00
Tim Heap
904441de37 Use _meta.get_fields() over deprecated _meta.get_all_related_objects() 2016-03-30 21:59:03 +01:00
Tim Heap
90bcabd9cd Use field.rel over field.related, rel.model over rel.to 2016-03-30 21:58:56 +01:00
Tim Heap
c92ed903c6 Stop using methods deprecated in Wagtail
Some code was using methods from Wagtail, even though those methods were
deprecated with alternatives provided. Those alternatives are now used
instead.
2016-03-30 21:58:13 +01:00
Tim Heap
dff171e78b Update django-taggit version to 0.18.x branch 2016-03-30 20:04:13 +01:00
Karl Hobley
3f6efd18fa Changelog/release note for #2405 2016-03-30 19:59:06 +01:00
Tim Heap
9e6a56765f Add tests for snippet edit handler form classes 2016-03-30 19:53:19 +01:00
Tim Heap
56c5a78aa7 Check form class from Page edit handler for correct type
Forms for Page classes must subclass WagtailAdminPageForm. If they do
not, an error will be thrown for invalid arguments when the Page editor
is opened.

Partial fix for #2267.
2016-03-30 19:53:19 +01:00
Tim Heap
9b9eab6d4c Get EditHandler form class from model if not overridden
Unless overridden by passing `base_form_class=CustomFormClass` to an
EditHandler, the EditHandler now gets the base form class from the
model. People who override the EditHandler of a model no longer have to
also override the base_form_class if the model needs a custom one.

Fixes #2267
2016-03-30 19:53:19 +01:00
Karl Hobley
db269928e8 Set explorer menu media with property instead of class
Fixes #2369

The static() function was being called during app load which caused a crash when the user is using STATICFILES_STORAGE=ManifestStaticFilesStorage, DEBUG=False and haven't yet collected static files.

I've moved it into a property and it's now only called when a view is being rendered. This also is more consistent because we usually set media using properties (and so does Django admin).
2016-03-30 17:19:14 +03:00
Karl Hobley
d22be01d37 Changelog/release note for #2386 2016-03-27 14:32:46 +01:00
Josh Barr
2ce9bda1a3 replace classic logical fallacy in touch event detection with the recommended solution. 2016-03-27 14:29:24 +01:00
Timo Rieber
38e1fe7735 Clarified wagtail userbar options and positioning 2016-03-27 14:29:16 +01:00
Karl Hobley
4faa880796 Changelog/release note for #2382 2016-03-24 20:57:17 +00:00
Karl Hobley
17f4490ec9 Fixed syntax of jQuery selector
We recently updated to jQuery 2.x and this requires quotes around attribute values.

Fixes #2380
Fixes #2381
2016-03-24 20:53:34 +00:00
Matt Westcott
211a51f0fc Version bump to 1.4.1 2016-03-17 01:42:41 +00:00
Rob Moorman
287ca850bb Removed arrow-up after selector issue #2365 2016-03-17 01:23:12 +00:00