Wykres commitów

7955 Commity (3eac584c7c6a73db9cf8c238c806357d1f3b2c3e)

Autor SHA1 Wiadomość Data
Karl Hobley 0f6f650178 Rename field.rel to field.remote_field 2017-11-01 16:22:46 +00:00
Karl Hobley 7a3707eca0 Moved `app_name` URLconf setting into included urls modules 2017-11-01 16:22:46 +00:00
Karl Hobley be6284c0a0 Add on_delete= on search models 2017-11-01 16:22:46 +00:00
Karl Hobley bf7936ade2 Replace `django.core.urlresolvers` with `django.urls` 2017-11-01 16:22:46 +00:00
Tim Heap 62aa2b2726 Update Tim Heap's contributor note
I've changed employers, but still contribute to Wagtail.
2017-11-01 09:48:58 +00:00
Tim Heap 1f2b8ccaf1 Filter pop-out explorer pages using 'construct_explorer_page_queryset'
The pages listed when browsing the /admin/pages/ explorer differed from
the pages listed in the new React/admin API powered pop-out explorer.
The latter did not pass the queryset through the
'construct_explorer_page_queryset' hook, so pages that should have been
hidden were visible. Visiting these pages in the explorer could then
lead to unexpected behaviours, as hidden sections of the site became
browsable.

A new `for_explorer=1` query parameter has been added to the admin API,
which will pass the page queryset through the
'construct_explorer_page_queryset' hooks.
2017-10-31 15:55:01 +00:00
Mikalai Radchuk e1fc584f1c Implementation of separate_filters_from_query (#2766)
* Implementation of separate_filters_from_query

* Adds test with unclosed quotation mark
2017-10-30 10:34:31 +00:00
Karl Hobley 0fb6edcf5f Changelog/release notes for #3979 and #3983 2017-10-30 10:17:12 +00:00
Karl Hobley c3022c23b5
Moved SearchableListMixin to wagtailadmin (#3970)
* Moved SearchableListMixin to wagtailadmin

* Add wagtailsearch support to SearchableListMixin

* Cleanup in SearchableListLixin

As per https://github.com/wagtail/wagtail/pull/3970#discussion_r146959286
2017-10-30 09:47:40 +00:00
Bertrand Bordage d6df75e1d2 Makes `PageChooserPanel` search in all fields. (#3979) 2017-10-30 09:38:45 +00:00
Tim Heap 25f60060d3 Only show "View live" buttons if pages are accessible (#3983)
"View live" buttons in flash messages are now only displayed if the page
has a live URL. Editing pages that do not have a URL will no longer
produce broken buttons.

Fixes #3982
2017-10-30 09:31:43 +00:00
Tom Dyson aeef5a5454 Make license perpetual 2017-10-27 09:55:03 +01:00
Karl Hobley 1c9c934f9f Changelog/release notes for #3856 and #3946 2017-10-26 16:53:09 +01:00
Karl Hobley b350672585 Merge pull request #3934 from gasman/cleanup/remove-python2
Remove Python 2 fallback code
2017-10-26 14:41:43 +01:00
Kees Hink feb02e7857 Use full width (drop right column) if usage is off 2017-10-26 14:34:58 +01:00
Kees Hink 9b0139ff33 Remove padding 2017-10-26 14:34:58 +01:00
Kees Hink 034b3a32a5 Show Usage info link on delete form for Documents and Snippets 2017-10-26 14:34:58 +01:00
Kees Hink 454af89c17 Move Usage info (Documents, Images) to sidebar 2017-10-26 14:34:58 +01:00
Venelin Stoykov 57969731b2 Fix routablepageurl to work with WAGTAIL_APPEND_SLASH = False (#3856) 2017-10-26 14:25:36 +01:00
Karl Hobley 030c6b9548 Changelog/release notes for #3925, #3930 and #3974 2017-10-26 13:55:21 +01:00
Stein Strindhaug b641bb8ce8 Tolerate sites where all pages are private (#3974)
When all pages on a site is private, the last_mods set will be empty
causing a crash when trying to get the max value from it.
This fix adds a test that the set is truthy (not empty) before calling
max.
2017-10-26 11:53:05 +01:00
LB (Ben Johnston) f219493365 Implement ordering by date in Form Submission View
* add url parsing for ordering

* add data_fields_with_ordering

* send data_fields_with_ordering and use in template

* use full words 'ascending' not 'asc'

* add styles for ordered headings

* add links for changing ordering to headings

* linting

* move field ordering to the form page model

* use form page model field ordering

* view to use rearranged field ordering

* add tests for new submission list ordering

* change to be easier to read

* Update tests to reflect new listing with ordering information
2017-10-25 16:57:33 +01:00
Karl Hobley fa302c0853 Remove wagtail.contrib.wagtailapi 2017-10-25 16:49:17 +01:00
Karl Hobley bd38525e5b Merge branch 'master' into cleanup/remove-python2 2017-10-25 16:21:27 +01:00
Matt Westcott 5ce8fe3566 Remove dont_use_model_field_default_for_empty_data flag required by Django 1.10.1 2017-10-25 16:15:02 +01:00
Matt Westcott 6ab10b5e11 Remove remaining DJANGO_VERSION checks for Django <1.11 2017-10-25 16:15:02 +01:00
Matt Westcott 1f54141aeb Remove unnecessary comment re Django 1.8 2017-10-25 16:15:02 +01:00
Matt Westcott 6882a1fb42 Remove pre-Django 1.8 code from check_image_file_format 2017-10-25 16:15:02 +01:00
Matt Westcott 98f600c514 Remove Django 1.8 fallback code for transaction.on_commit 2017-10-25 16:15:02 +01:00
Matt Westcott 60c26e5565 Remove note about Django 1.10 being required for postgres search backend 2017-10-25 16:15:02 +01:00
Matt Westcott 56a68c3ee8 Remove more Django 1.8 references from docs 2017-10-25 16:15:02 +01:00
Karl Hobley 499ef19a9b Changelog/release note for #3521 2017-10-25 15:28:32 +01:00
Karl Hobley 1c09c808c6 Fix offset when using scroll API 2017-10-25 15:10:40 +01:00
Karl Hobley 0bcf5a951e Factor out repeated code 2017-10-25 15:10:40 +01:00
Karl Hobley 688b025187 Implement tweaks suggested by @BertrandBordage 2017-10-25 15:10:40 +01:00
Karl Hobley ca1ebc7a1e Added tests that retrieve more than 100 results from Elasticsearch 2017-10-25 15:10:40 +01:00
Karl Hobley dea74450ca Clear the scroll when we are done with it 2017-10-25 15:10:40 +01:00
Karl Hobley d794a52ff8 Don't use scroll API when less than 100 items are requested 2017-10-25 15:10:40 +01:00
Karl Hobley 7199bbae47 Fetch search results with scroll API
This allows Wagtail to load in many search results for a single search
query. It also fixes the behaviour when the limit is not set (currently
automatically limits to 10 results but now will return all results).
2017-10-25 15:10:40 +01:00
Karl Hobley 328e337395 Changelog and release notes for #3940 and #3968 2017-10-25 11:56:39 +01:00
Bertrand Bordage 3b585665c9 Merge pull request #3968 from timheap/patch-1
Fix using modeladmin_register as a decorator
2017-10-25 11:28:16 +02:00
Tim Heap 83c0ef42da Fix using modeladmin_register as a decorator
Using `modeladmin_register` as a decorator worked, and the ModelAdmin subclass was registered successfully, but as `modeladmin_register` did not return the ModelAdmin subclass, the decorated class would be `None`. Returning the class prevents this issue, so `modeladmin_register` will now work as expected as a decorator.
2017-10-25 09:55:54 +11:00
Bertrand Bordage e509f2572b Fixes admin dropdown arrow. 2017-10-24 12:28:20 +02:00
Matt Westcott 9ec8daba43 Update `slugurl` documentation with a "real-world" example.
Thanks to @rifuso for the suggestion!
2017-10-23 12:40:07 +01:00
Mads Jensen 543d09fa15 Removed empty super().__init__ constructs. 2017-10-23 10:12:12 +01:00
Bertrand Bordage 4e6f5cd878 Merge pull request #3939 from kaedroho/search-tests
Rewrite search tests
2017-10-20 16:49:53 +02:00
Karl Hobley c0dc85d86a Remove unused imports 2017-10-20 15:44:10 +01:00
Karl Hobley c7d37043ca Deduplicate Elasticsearch index rebuilder tests 2017-10-20 14:44:16 +01:00
Karl Hobley ea585cb5a3 Use lists instead of sets in search tests
And a few other tweaks
2017-10-20 12:56:35 +01:00
Karl Hobley c60bdbb8c7 Override test_search_all for Elasticsearch 2017-10-20 12:55:33 +01:00