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

10299 Commits

Author SHA1 Message Date
Martin Sandström
301d1bc7f5 Add ability to import redirects from a file wagtail.contrib.redirects
* Add support for importing redirects via tsv, csv, xls and xlsx files
* Add import_redirects management command to redirects documentation
2020-06-07 11:20:39 +10:00
Matt Westcott
6e9bcef5db Release note for #6013 2020-06-05 15:23:50 +01:00
Karl Hobley
0288241170 Clean text before indexing 2020-06-05 15:10:21 +01:00
Karl Hobley
581da602fe Make ADD/MULL/AND/OR operators combine query classes in a balanced way
To prevent recursion errors
2020-06-05 15:10:21 +01:00
Karl Hobley
ef8429cc1e Apply field length normalisation to title in PostgreSQL search 2020-06-05 15:10:21 +01:00
Thibaud Colas
df164a7e69 Fix JS not working in IE11 due to using unimplemented NodeList#forEach 2020-06-05 07:24:33 +10:00
Thibaud Colas
100edcdc09 Update npm dependencies with npm audit fix
Apply trickier gulp upgrades

Update react-streamfield, removing extraneous dependency

Upgrade to latest version of stylelint

Add package-lock.json changes from local npm install
2020-06-04 07:02:43 +10:00
Andrew Bunker
6fe9d0a23a Add note about Elasticsearch backend credentials to docs (#6097) 2020-06-03 17:37:26 +01:00
Matt Westcott
67fc0d7787 Release note for #6046 2020-06-03 17:28:34 +01:00
Yngve Høiseth
ff60a05e91 Fix _type ElasticsearchDeprecationWarning 2020-06-03 17:26:46 +01:00
Yngve Høiseth
fa203b1083 Fix ElasticsearchDeprecationWarnings 2020-06-03 17:26:46 +01:00
Matt Westcott
fb016b8053 Update elasticsearch / db backend test modules for new autocomplete tests / schema changes 2020-06-03 17:10:11 +01:00
Matt Westcott
e5bd7d71f6 Ensure PostgresAutocompleteQueryCompiler consistently uses AutocompleteFields
get_fields_vector relies on self.search_fields, which in the base PostgresSearchQueryCompiler constructor is a lookup of SearchFields - here we need to patch that behaviour to build a lookup of AutocompleteFields instead.
2020-06-03 17:10:11 +01:00
Karl Hobley
ade6b27f50 Always use 'simple' config for autocomplete
This prevents PostgreSQL from stemming words which causes issues when
searching on prefix
2020-06-03 17:10:11 +01:00
Karl Hobley
fbb70e0b5d Make .autocomplete() API only search AutocompleteFields
This API isn't documented yet so I'm not concerned about backwards
compatibility.
2020-06-03 17:10:11 +01:00
LB (Ben Johnston)
e3e46e23b7
Fix typo in request.site middleware deprecation warning (#6104) 2020-06-03 11:05:59 +01:00
Coen van der Kamp
eb9cff7bf3 Drop null=True from Site.site_name
* Avoid using null on string-based fields such as CharField and TextField. If a string-based field has null=True, that means it has two possible values for “no data”: NULL, and the empty string.
* See: https://docs.djangoproject.com/en/3.0/ref/models/fields/#django.db.models.Field.null
2020-06-02 20:42:29 +10:00
Timothy Bautista
48511a7457 Strip HTML tags search index for RichTextBlock & RichTextField
* Add get_searchable_content function to RichTextField
* Fixes #6098
2020-06-02 20:34:38 +10:00
Timothy Bautista
dd7a928353 Tweak Wagtail logo hover animation in docs
This matches the hover animation exactly the same as in Wagtail but without the "playful" wagtail Easter egg (where the original hover animation came from)
2020-06-02 20:34:20 +10:00
Dan Braghis
eabc9e4dac
Merge pull request #6092 from lb-/feature/gitignore-test-media
add gitignore to tests folder - ignore test-media sub-folder
2020-06-01 09:24:27 +01:00
LB
39502ab4f8 add gitignore to tests folder - ignore test-media sub-folder 2020-05-31 19:28:48 +10:00
LB
6d2bb66536 Update AbstractForm to use mode_name for preview mode
- clean up to align with other usage across Wagtail
2020-05-30 16:48:30 +01:00
jacobtoppm
94e9b4d4c1
Merge pull request #6081 from Cheradenine/6076-fix-list-export-methods
Fix for IndexView to allow AdminModel methods for fields #6076
2020-05-29 09:16:47 +01:00
John B
1a160dfef5 Serialize dates for Excel as isoformat strings via a custom IndexView 2020-05-28 13:28:49 -04:00
John B
e707b85ea3 remove force_str when serializing values. Workaround Excel / openpyxl date issue 2020-05-28 07:43:47 -04:00
John B
fd84ea5e61 linter error 2020-05-27 19:12:38 -04:00
John B
1b0d3a0564 pass model_admin down to label_for_field 2020-05-27 19:06:16 -04:00
Karl Hobley
88cff1f69e Remove extra quotes around query string when no matches found 2020-05-27 22:44:24 +01:00
Karl Hobley
8997370126 Return all results when no search terms specified
This lets search filters work when there is no search query.
2020-05-27 22:44:24 +01:00
Coen van der Kamp
afa640fa14 Translate site default label 2020-05-27 22:41:19 +01:00
Scott Cranfill
8c6c7b8c77 Fix JS linting issue that slipped into SVG icon PR 2020-05-27 18:57:03 +01:00
Matt Westcott
ab71e515e4 Release notes for #6057 2020-05-27 18:17:04 +01:00
Matt Westcott
c3a7efa7a1 Revert prioritisation of USE_L10N=True over WAGTAIL_*_FORMATS 2020-05-27 18:01:35 +01:00
jacobtoppm
ead6c8b2a6 Add WAGTAIL_TIME_FORMAT to settings reference 2020-05-27 13:55:52 +01:00
jacobtoppm
ba4a72d867 Add tests for new date/time widget behaviour 2020-05-27 13:55:51 +01:00
jacobtoppm
38f18ae98b Allow the timepicker widget width to vary to account for longer time formats 2020-05-27 13:55:50 +01:00
jacobtoppm
da3c162d4d Make datetimepicker consistent with USE_L10N=True by allowing it to override the WAGTAIL_x_FORMAT settings. Add a new setting, WAGTAIL_TIME_FORMAT, to specify the time formatting for the timepicker widget and the input format. 2020-05-27 13:55:49 +01:00
jacobtoppm
6da415335a Update php-date-formatter to 1.3.6 in vendor js to prevent datetimepicker 12 hour time issue where it would reduce the time by an hour each time the widget lost focus 2020-05-27 13:55:46 +01:00
Thibaud Colas
314a926f75 Update Python and JS test coverage collection to exclude tests 2020-05-27 09:11:26 +01:00
Thibaud Colas
bb83801532 Fix RestaurantTag migration tests introducing an extra migration (#6075)
Due to the verbose_name being lowercased in django-taggit v1.3.0, 90c7224018.
2020-05-27 08:56:34 +02:00
Martin Sandström
f4542c8ffc Fix that proper document icon are shown 2020-05-26 19:43:11 +02:00
GTpyro
147fda12fa Update signals.rst for Python 3 compatibility
The send_to_slack example was not compatible with Python 3. Example is updated using the requests & json libraries (instead of urllib & urllib2)
2020-05-26 19:21:13 +02:00
Matt Westcott
a7ddb056b8 Fix test suite migrations to match django-taggit 1.3.0 2020-05-26 11:04:07 +01:00
Dan Bentley
f43db1e69e Fetch and apply annotations if using specific() 2020-05-24 10:09:45 +10:00
Timothy Bautista
1958bba247 Fix typo in 2.10 release notes doc 2020-05-21 09:21:52 +01:00
Coen van der Kamp
a1a2c35c1c Template render richtext without wrapper, add wagtail.contrib.legacy.richtext
* Add wagtail.contrib.legacy.richtext with tests & docs
* Make RichText.__html__ behave the same as template filter
* Resolves #1214
2020-05-21 07:53:31 +10:00
Coen van der Kamp
eed16e0034 Add SVG Icons and include in admin menu
* This commit only covers the migration of the icons in the menu and draftail editor. All
other admin menu icons remain implemented as before.
* Existing font based icon support still exists.
* Convert menu icons to SVG
* This could be considered a breaking change for any Wagtail sites or
packages that are leveraging Wagtail's Button and Icon React components.
* Remove references to unused `submenu-trigger` class
* Prefix icon `id`s with `icon-` to prevent `id` collisions
* Add hooks support (not yet documented) for adding custom icons
2020-05-21 07:36:33 +10:00
Matt Westcott
dcb517f080 Changelog note for phrase search / search query expressions 2020-05-20 14:31:37 +01:00
Matt Westcott
92e9e15683 Release note for phrase search / search query expressions 2020-05-20 14:29:00 +01:00
Karl Hobley
9dd9d0c895 Docs for parse_query_string 2020-05-20 14:12:27 +01:00