mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-12 09:13:14 +00:00
Fix MovedDefinitionHandler deprecation warnings to point to the import location
This commit is contained in:
parent
227221f7fb
commit
a92d81be0c
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ class MovedDefinitionHandler(object):
|
|||
|
||||
warnings.warn(
|
||||
"%s has been moved from %s to %s" % (name, self.real_module.__name__, new_module_name),
|
||||
category=self.warning_class
|
||||
category=self.warning_class, stacklevel=2
|
||||
)
|
||||
|
||||
# load the requested definition from the module named in moved_definitions
|
||||
|
|
|
|||
Loading…
Reference in a new issue