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
Karl Hobley
3d645fad53
Make database backend handle MATCH_ALL/MATCH_NONE properly
2020-05-20 14:12:24 +01:00
Karl Hobley
a2bfb193b6
Added query parser and use it in the admin
2020-05-20 14:12:23 +01:00
Karl Hobley
7d32a4fd21
Implemented MATCH_NONE query
2020-05-20 14:12:20 +01:00
Karl Hobley
81811f6c1c
Documentation for phrase search and query classes
2020-05-20 14:12:18 +01:00
Karl Hobley
a501dc257d
Implement Phrase() query in Elasticsearch backend
2020-05-20 14:12:17 +01:00
Karl Hobley
b320ac7910
Implement Phrase() query in PostgreSQL backend
2020-05-20 14:12:16 +01:00
Karl Hobley
a67ac1aa1d
Implement Phrase() query in database backend
2020-05-20 14:12:15 +01:00
Karl Hobley
55db4646ed
Add Phrase() query class and test
2020-05-20 14:12:14 +01:00
Karl Hobley
70c5dcf80f
Add "Programming Rust" book to search fixture
2020-05-20 14:12:13 +01:00
Coen van der Kamp
99abab5d6b
Add section to explain commit to pull request
2020-05-19 17:56:26 +01:00