File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 3232)
3333
3434ON_PUBLISH_REDIRECT = getattr (
35- settings , "DJANGOCMS_VERISONING_ON_PUBLISH_REDIRECT" , "published"
35+ settings ,
36+ "DJANGOCMS_VERSIONING_ON_PUBLISH_REDIRECT" ,
37+ # Released typo (VERISONING instead VERSIONING)
38+ getattr (settings , "DJANGOCMS_VERISONING_ON_PUBLISH_REDIRECT" , "published" )
3639)
3740#: Allowed values: "versions", "published", "preview"
3841
42+ if hasattr (settings , "DJANGOCMS_VERISONING_ON_PUBLISH_REDIRECT" ) and not hasattr (
43+ settings , "DJANGOCMS_VERSIONING_ON_PUBLISH_REDIRECT"
44+ ):
45+ import warnings
46+
47+ warnings .warn (
48+ (
49+ "The incorrectly spelled 'DJANGOCMS_VERISONING_ON_PUBLISH_REDIRECT' setting "
50+ "is deprecated and will be removed in a future release. "
51+ "Please rename it to 'DJANGOCMS_VERSIONING_ON_PUBLISH_REDIRECT'."
52+ ),
53+ DeprecationWarning ,
54+ stacklevel = 2 ,
55+ )
56+
57+
3958VERBOSE_UI = getattr (
4059 settings , "DJANGOCMS_VERSIONING_VERBOSE_UI" , True
4160)
Original file line number Diff line number Diff line change 11-r requirements_dev.txt
22mysqlclient>=2.2.1
33psycopg2
4+ django-treebeard<5
You can’t perform that action at this time.
0 commit comments