Wykres commitów

6192 Commity (c4feb6462fb75483aec217e597d64e744fcbb95d)

Autor SHA1 Wiadomość Data
Tim Heap 272b7223cf Update django-taggit version to 0.18.x branch 2016-03-30 20:02:26 +01:00
Karl Hobley 974d593c85 Changelog/release note for #2405 2016-03-30 19:59:59 +01:00
Tim Heap 8b6f84d899 Add tests for snippet edit handler form classes 2016-03-30 19:42:18 +01:00
Tim Heap c823ace6a1 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:42:18 +01:00
Tim Heap 9c25d36041 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:42:18 +01:00
Karl Hobley dcc89ce9b1 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:06:29 +03:00
Tim Heap 5a6afd32f2 Fix import order 2016-03-30 15:05:49 +01:00
Karl Hobley 0dc8fdb3b3 Split up TestFindSiteForRequest 2016-03-28 11:45:57 +01:00
Alex Gleason 7296a1dd71 Added tests for Site.find_for_request 2016-03-28 11:45:57 +01:00
Tim Heap 27db7fb69e Add @danni to CONTRIBUTORS.rst
See #2359
2016-03-28 02:49:07 +02:00
Karl Hobley 77f143ab8f Changelog/release note for #2386 2016-03-27 14:33:27 +01:00
Josh Barr 0b9f78ef9d replace classic logical fallacy in touch event detection with the recommended solution. 2016-03-27 14:28:28 +01:00
Timo Rieber 9bdc843c8f Clarified wagtail userbar options and positioning 2016-03-27 14:23:47 +01:00
Tim Heap 4b46ff341d Add docs on making Wagtail compatible with multiple Django versions 2016-03-27 07:15:56 +02:00
Chris Townsend 8ac23d0554 Updated to include TEMPLATE requirement for Django 1.9+
In Django 1.9+ if you do not add: 'builtins': ['overextends.templatetags.overextends_tags'], to your TEMPLATES section you will receive a TemplateSyntaxError when the overextends template files are rendered: "Invalid block tag on line".  Including 'builtins': ['overextends.templatetags.overextends_tags'], per the overextends docs (and experience) resolves this error.

https://github.com/stephenmcd/django-overextends
2016-03-24 21:38:58 +00:00
Karl Hobley 729ec8bfab Changelog/release note/upgrade consideration for #2388 2016-03-24 21:21:05 +00:00
Tim Heap 6bd168580e Change Indexed.search_fields to be a listish thing
Indexed.search_fields used to be a tuple. This is incorrect, and it
should have been a list.  Changing it to be a list now would be a
backwards incompatible change, as people do

    search_fields = Page.search_fields + (
        SearchField('body')
    )

Adding a tuple to the end of a list causes an error, so this would
cause all old code that used tuples to throw an error. This is not
great.

A new ThisShouldBeAList class, which subclasses list, has been added.
It additionally allows tuples to be added to it, as in the above
behaviour, but will raise a deprecation warning if someone does this.
Old code that uses tuples will continue to work, but raise a deprecation
warning.

See #2310
2016-03-24 21:05:09 +00:00
Karl Hobley 63a891266a Changelog/release note for #2382 2016-03-24 20:58:31 +00:00
Karl Hobley 9e1e12b5a6 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:51:03 +00:00
Matt Westcott 959d72c30c Remove deprecated features for 1.5; update deprecation warning versions 2016-03-22 22:44:18 +00:00
Tim Heap e001cac581 Release notes for #2260 2016-03-22 14:36:21 +11:00
Jonas Lergell 78a489b53f Remove highlighting for calendar day when switching months in the datetimepicker 2016-03-22 14:30:44 +11:00
Jonas Lergell 5b10a4969d Show todays date in the datetimepicker, even if it is not currently selected 2016-03-22 14:30:44 +11:00
Math1985 03cba5b91c Ask user for old password when changing password
This is accomplished by using PasswordChangeForm instead of SetPasswordForm.

This adds extra security, as without this commit, an attacker that has access to
a user's session at one point in time will be able to change the user's password
and gain permanent access.
2016-03-22 11:50:18 +11:00
Danielle Madeley 6fde6863c5 Get the request host from request.get_host
Fixes #2358
2016-03-19 23:23:06 -04:00
Rob Moorman 5158ee7aad Removed arrow-up after selector issue #2365 2016-03-17 01:25:26 +00:00
Matt Westcott 8976453dfc Add Antonin Enfrun and Edd Baldry to French translators list 2016-03-16 12:33:21 +00:00
Matt Westcott 5f67ce2c4b 1.4 no longer 'in development' 2016-03-16 11:31:20 +00:00
Matt Westcott bd1456c793 Pull new translations from Transifex 2016-03-16 11:04:04 +00:00
Matt Westcott 679df7e985 Add missing quoting to icon-*-after CSS 2016-03-15 17:07:10 +00:00
Tim Heap 84432fbfd6 Add docs on how to build docs
I put some docs in your docs on building docs, so now I can build docs
about my docs from my docs.
2016-03-11 17:24:38 +00:00
Matt Westcott 83ab0746bc Release note for #2333 2016-03-11 17:21:53 +00:00
Tom Dyson 6dcb433215 CamelCase JavaScript in hooks documentation 2016-03-11 17:19:45 +00:00
Tom Dyson 43cb7f8e83 Hook for adding JS to all admin pages
Like insert_editor_js but not just for edit pages.
2016-03-11 17:19:45 +00:00
Matt Westcott 6803075188 Release notes for #1940 2016-03-11 15:43:43 +00:00
Josh Barr a7d8a7bd4d added documentation for page listing buttons 2016-03-11 15:43:42 +00:00
Mikalai Radchuk e2327675e1 Adds tests for buttons hooks
Tests folowing:
 * `register_page_listing_buttons`
 * `register_page_listing_more_buttons`
 * Custom hook produced by non-default `ButtonWithDropdownFromHook` instance

organised indicator color state variables into main variables.scss file
2016-03-11 15:43:42 +00:00
Josh Barr 29f92d25d2 organised indicator color state variables into main variables.scss file 2016-03-11 15:43:41 +00:00
Josh Barr 1119891acb added lint configuration for BEM, fixed other lint issues 2016-03-11 15:43:40 +00:00
Tim Heap ba4983ca21 Add styles for dropdown buttons 2016-03-11 15:43:39 +00:00
Tim Heap f972579844 Add hook to allow adding buttons to page listing
The 'register_page_listing_buttons' hook allows plugin developers to add
buttons to the actions list on the page listing in the admin.
2016-03-11 13:48:51 +00:00
Matt Westcott 1c61b2316c Version-bump to start work on 1.5 2016-03-11 13:43:00 +00:00
Tim Heap 861bd2de14 Sort imports using isort
```
$ pip install isort -e .[testing,docs]
$ isort --recursive wagtail/
$ git add wagtail
$ git commit
```
2016-03-11 10:48:00 +00:00
Tim Heap 31972dfd9e Check imports with isort on drone 2016-03-11 10:47:59 +00:00
Josh Barr aa609c4eb5 added more defensive CSS to the userbar 2016-03-11 10:06:55 +00:00
Robert Rollins b94ff6a952 Searchly no longer supports Elasticsearch 1.x, so I switched the suggested development service to Bonsai. 2016-03-10 15:11:42 +00:00
Robert Rollins 6446c42132 Various typo fixes and grammar/clarity improvements. 2016-03-10 15:11:41 +00:00
Matt Westcott d134eadb2a Version bump for 1.4rc1 2016-03-09 14:36:11 +00:00
Karl Hobley 9393b93538 Improvements to MANIFEST.IN
Reduces size of wheel files to 5.7MB from 9.3MB
2016-03-09 14:30:25 +00:00
Matt Westcott 7166dff86d Generate new translation strings 2016-03-09 13:56:33 +00:00