mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-11 10:30:58 +00:00
Merge branch 'kaedroho-show-deprecation-warnings-for-next-version'
This commit is contained in:
commit
ffeb1004e7
2 changed files with 11 additions and 0 deletions
|
|
@ -2,5 +2,8 @@ class RemovedInWagtail12Warning(DeprecationWarning):
|
|||
pass
|
||||
|
||||
|
||||
removed_in_next_version_warning = RemovedInWagtail12Warning
|
||||
|
||||
|
||||
class RemovedInWagtail13Warning(PendingDeprecationWarning):
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -1,2 +1,10 @@
|
|||
__version__ = '1.1a0'
|
||||
default_app_config = 'wagtail.wagtailcore.apps.WagtailCoreAppConfig'
|
||||
|
||||
def setup():
|
||||
import warnings
|
||||
from wagtail.utils.deprecation import removed_in_next_version_warning
|
||||
|
||||
warnings.simplefilter("default", removed_in_next_version_warning)
|
||||
|
||||
setup()
|
||||
|
|
|
|||
Loading…
Reference in a new issue