Wykres commitów

7529 Commity (be73f16e14f61b6d424c2ae7f25029ef3ba2e933)

Autor SHA1 Wiadomość Data
Matt Westcott be73f16e14 Make custom PageManagers return the correct PageQuerySet subclass
As reported in https://github.com/wagtail/wagtail/issues/3250#issuecomment-284988695, custom page managers created with PageManager.from_queryset(CustomPageQuerySet) fail to return instances of CustomPageQuerySet. This breaks the EventPageQuerySet example given at http://docs.wagtail.io/en/v1.9/topics/pages.html#custom-page-managers.
2017-10-06 13:06:18 +01:00
Matt Westcott 0e38f0b401 Reinstate MSSQL implementation of _update_descendant_url_paths
We don't currently have testing infrastructure to confirm that the pure-ORM version works on MSSQL, so we'll make an exception for it in the interests of not blocking this fix for other DBs.
2017-10-06 12:40:28 +01:00
Michael van Tellingen cf25d07120 Remove custom SQL statements in Page._update_descendant_url_paths
Django 1.8 introduced ORM functions for Concat and Substring so use that
instead of custom SQL statements based on the connection vendor.
2017-10-06 11:31:25 +01:00
Matt Westcott 700864bb2a Release note for #3794 2017-10-06 00:37:47 +01:00
Matt Westcott 09591fcf98 Add tests for custom admin display titles in search results 2017-10-06 00:24:25 +01:00
Ben Sturmfels 4063573f9c Use Page subclass get_admin_display_title() in admin search views.
The template changes force the most specific ``get_admin_display_title`` method
to be used across all page explorer lists and page choosers in the admin. The
view changes should reduce the performance hit in the case of the search views.
2017-10-06 00:24:25 +01:00
Mads Jensen 11bf9b0e28 Use django.utils.six.iteritems in wagtail.utils.utils.deep_update. 2017-10-05 16:43:28 +01:00
Matt Westcott de3f9550b4 Release note for #3824 2017-10-05 15:40:55 +01:00
Karl Hobley 48cfb8e790 Tweaks to the docs 2017-10-05 15:15:21 +01:00
Karl Hobley 0cb63c72c5 Implemented suggestions from @chosak 2017-10-05 15:15:20 +01:00
Karl Hobley de3c37639b isort 2017-10-05 15:15:20 +01:00
Karl Hobley 4767e9cf80 Tests for batch cache invalidation 2017-10-05 15:15:20 +01:00
Karl Hobley 8dc425660b Docs for batch cache invalidation 2017-10-05 15:15:20 +01:00
Karl Hobley 0a02e5cc78 Added PurgeBatch class 2017-10-05 15:15:20 +01:00
Karl Hobley 99b9af3b5b Added purge_pages_from_cache function 2017-10-05 15:15:20 +01:00
Karl Hobley 4570653d0c Implement purge_urls_from_cache 2017-10-05 15:15:20 +01:00
Karl Hobley dcfd45c326 Implement purge_batch on frontend cache backends 2017-10-05 15:15:19 +01:00
Karl Hobley 2082c2ff76 Implemented remaining suggestions from @chosak 2017-10-05 15:07:14 +01:00
Karl Hobley 1c13461004 Add comment about why setting self.object is required 2017-10-05 15:07:14 +01:00
Karl Hobley e83eb0b32b Various cleanups in generic views 2017-10-05 15:07:14 +01:00
Karl Hobley 8a028fbe38 Removed unused get_queryset methods
Thanks to @chosak for spotting. I also removed these methods from
EditView and DeleteView as they weren't being used there.
2017-10-05 15:07:14 +01:00
Karl Hobley c75d209925 Convert groups to generic views/viewsets
Picking off the lower hanging fruit first.

This converts the groups section of the admin to use generic
views/viewsets.
2017-10-05 15:07:14 +01:00
Mads Jensen 3dc3236e3f Removed Django pre 1.8 fallback for urlquote_safechars 2017-10-05 12:16:49 +01:00
Mads Jensen c94b518295 Removed Python 2.6 email.utils import fallback 2017-10-05 12:15:27 +01:00
Mads Jensen 27eddba955 Simplified Content-Encoding in response in utils/sendfile.py 2017-10-05 11:36:46 +01:00
Mads Jensen b655cda791 Deleted Django 1.3 import fallback in utils/sendfile.py 2017-10-04 23:59:52 +01:00
Matt Westcott f8bbd9b9b5 Ensure example.doc is deleted on TestServeView teardown 2017-10-04 20:00:24 +01:00
Samir Shah 62b8caedd5 Remove SessionAuthenticationMiddleware from project template and docs.
The project template assumes Django 1.11, where SessionAuthenticationMiddleware is redundant (see https://docs.djangoproject.com/en/1.11/releases/1.10/#features-removed-in-1-10).

Also update the documentation to consistently refer to MIDDLEWARE instead of MIDDLEWARE_CLASSES.
2017-10-04 16:14:34 +01:00
Timo Rieber 63af2b28ea Added PythonAnywhere deployment infos including the wagtail-pythonanywhere-quickstart project 2017-10-03 15:54:33 +01:00
Timo Rieber 6414e6c10b Removed openshift deployment infos (v2 has been sunset) 2017-10-03 15:54:33 +01:00
Mads Jensen aa3f5b7828 Added missing on_delete to SearchTestSubObject.parent 2017-10-02 22:51:37 +01:00
Mikalai Radchuk ddb0665f79 Make last_published_at filterable 2017-10-02 21:39:31 +01:00
Matt Westcott ce0e88c3ae Release note for #3893 2017-10-02 21:15:36 +01:00
Matt Westcott 6be28b0e99 Add test for USE_THOUSAND_SEPARATOR breaking focal point editor 2017-10-02 21:09:35 +01:00
Sævar Öfjörð Magnússon 74080e49b0 Use unlocalize on image dimensions in data attributes. Fixes #3547 2017-10-02 15:51:12 +00:00
Mikalai Radchuk bcf3a8f364 Release notes for #3792 2017-10-02 10:20:17 +01:00
Will Giddens 2a8e63c018 Make user search in admin search multiple fields 2017-10-02 10:20:03 +01:00
Janneke Janssen b3e126d6b9 Update React to 15.6.2 due to relicensing (#3884) 2017-09-29 18:18:16 +13:00
Matt Westcott 46ce262bc0 changelog note for #3878 2017-09-27 14:46:33 +01:00
Matt Westcott 5d39033df0 Use globe instead of home icon for breadcrumb root 2017-09-27 14:19:24 +01:00
Matt Westcott 2c0177234e Add 'The Zen of Wagtail' document 2017-09-27 12:20:34 +01:00
Matt Westcott c19bea67b9 Stop breadcrumb home icon from showing as ellipsis in Chrome 2017-09-26 16:18:22 +02:00
Matt Westcott 4a325421f5 Fix admin 404 page (#3705) for Django 1.8 2017-09-22 11:44:11 +01:00
Matt Westcott f9de02b806 Release note for #3705 2017-09-21 15:00:10 +01:00
Matt Westcott 7dbc0a4638 Add tests for admin 404 page 2017-09-21 14:57:38 +01:00
Matt Westcott 3d21cae940 Allow overriding branding_logo on the 404 page 2017-09-21 13:25:12 +01:00
kapito a649e632b7 Added 404 page 2017-09-21 13:09:26 +01:00
Matt Westcott 6570cf1a76 Release note for #3442 2017-09-20 20:48:03 +01:00
Mikalai Radchuk 32846db1cb Use npm-run-all in npm scripts
This should allow us to run NPM scripts on Windows
2017-09-20 16:22:37 +01:00
Mikalai Radchuk dd3ad857de Install npm-run-all 2017-09-20 16:22:37 +01:00