Closed jamesbiggs closed 1 year ago
When upgrading to wagtail 5.0 and upgrading wagtailmedia to 0.14, I get a RemovedInWagtail60Warning for the SearchField partial_match, telling me it'll be removed in wagtail 6.0
wagtail
wagtailmedia
RemovedInWagtail60Warning
SearchField
partial_match
https://github.com/torchbox/wagtailmedia/blob/4bb6106236d7dffca50d7b8e25c4d5017fe6deb1/src/wagtailmedia/models.py#L70
This is the line of code that it arises from.
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
I believe this shouldn't happen as it's a relatively small fix - change SearchField with partial_match=True to AutocompleteField.
partial_match=True
AutocompleteField
I've made a PR here which should solve this issue: https://github.com/torchbox/wagtailmedia/pull/204 @zerolab
Fixed in https://github.com/torchbox/wagtailmedia/releases/tag/v0.14.1
Issue Summary
When upgrading to
wagtail
5.0 and upgradingwagtailmedia
to 0.14, I get aRemovedInWagtail60Warning
for theSearchField
partial_match
, telling me it'll be removed inwagtail
6.0https://github.com/torchbox/wagtailmedia/blob/4bb6106236d7dffca50d7b8e25c4d5017fe6deb1/src/wagtailmedia/models.py#L70
This is the line of code that it arises from.
Steps to Reproduce
wagtail
5.0wagtailmedia
0.14Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
I believe this shouldn't happen as it's a relatively small fix - change
SearchField
withpartial_match=True
toAutocompleteField
.Technical details
wagtailmedia
version: 0.14