Skip to content

Commit

Permalink
wagtail.search.backends.db should use RemovedInWagtail217Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gasman committed Oct 22, 2021
1 parent 73f65e9 commit 699e28a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wagtail/search/backends/db.py
@@ -1,6 +1,6 @@
import sys

from wagtail.utils.deprecation import MovedDefinitionHandler, RemovedInWagtail216Warning
from wagtail.utils.deprecation import MovedDefinitionHandler, RemovedInWagtail217Warning


# If users still import their backend from here, they will get a deprecation warning. The actual backend implementation is now in a submodule (database).
Expand All @@ -13,4 +13,4 @@
'SearchBackend': ('wagtail.search.backends.database', 'SearchBackend'),
}

sys.modules[__name__] = MovedDefinitionHandler(sys.modules[__name__], MOVED_DEFINITIONS, RemovedInWagtail216Warning)
sys.modules[__name__] = MovedDefinitionHandler(sys.modules[__name__], MOVED_DEFINITIONS, RemovedInWagtail217Warning)

0 comments on commit 699e28a

Please sign in to comment.