8000 fix: Wizard pool depr message · django-cms/django-cms@e47f647 · GitHub
[go: up one dir, main page]

Skip to content

Commit e47f647

Browse files
committed
fix: Wizard pool depr message
1 parent 9961fa9 commit e47f647

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cms/wizards/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from cms.utils.i18n import get_site_language_from_request
1616

1717
from .forms import WizardStep1Form, WizardStep2BaseForm, step2_form_factory
18-
from .wizard_pool import wizard_pool
18+
from .wizard_base import get_entry
1919

2020

2121
class WizardCreateView(SessionWizardView):
@@ -150,7 +150,7 @@ def done(self, form_list, **kwargs):
150150

151151
def get_selected_entry(self):
152152
data = self.get_cleaned_data_for_step('0')
153-
return wizard_pool.get_entry(data['entry'])
153+
return get_entry(data['entry'])
154154

155155
def get_origin_page(self):
156156
data = self.get_cleaned_data_for_step('0')

cms/wizards/wizard_pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from django.apps import apps
22
from django.utils.translation import gettext as _
33

4-
from cms.utils.compat.warnings import RemovedInDjangoCMS51Warning
4+
from cms.utils.compat.warnings import RemovedInDjangoCMS60Warning
55
from cms.wizards.helpers import get_entries, get_entry # noqa: F401
66
from cms.wizards.wizard_base import Wizard, entry_choices # noqa: F401
77

@@ -44,7 +44,7 @@ def register(self, entry):
4444

4545
warnings.warn(
4646
"Using wizard_pool is deprecated. Use the cms_config instead.",
47-
RemovedInDjangoCMS51Warning,
47+
RemovedInDjangoCMS60Warning,
4848
stacklevel=2,
4949
)
5050
assert isinstance(entry, Wizard), "entry must be an instance of Wizard"

0 commit comments

Comments
 (0)
0