Skip to content

Commit dd59256

Browse files
committed
Undeprecate the TemplateMixin
1 parent 766d150 commit dd59256

2 files changed

Lines changed: 5 additions & 13 deletions

File tree

CHANGELOG.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Next version
77
~~~~~~~~~~~~
88

99
- Added Django 5.2a1 to the CI.
10+
- Undeprecated the :mod:`~feincms3.mixins.TemplateMixin`, it's useful even
11+
though using :mod:`~feincms3.applications.PageTypeMixin` is obviously
12+
preferred.
1013

1114

1215
5.3 (2024-11-18)
@@ -201,8 +204,8 @@ Next version
201204
- Added a system check for the ``app_name`` value of application URLconf
202205
modules.
203206
- Added a system check for the values of ``MenuMixin.MENUS``.
204-
- Slowly start deprecating the :mod:`~feincms3.mixins.TemplateMixin`. (It
205-
probably won't go away for a long time.)
207+
- Slowly start deprecating the :mod:`~feincms3.mixins.TemplateMixin`. (NOTE!
208+
The deprecation has been reverted.)
206209

207210

208211
`3.3`_ (2022-03-03)

feincms3/mixins.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import warnings
2-
31
from django.conf import settings
42
from django.core.checks import Warning
53
from django.db import models
@@ -102,15 +100,6 @@ def fill_template_key_choices(sender, **kwargs):
102100
field.default = sender.TEMPLATES[0].key
103101
sender.TEMPLATES_DICT = {t.key: t for t in sender.TEMPLATES}
104102

105-
warnings.warn(
106-
f"{sender._meta.label} uses the TemplateMixin."
107-
" It is recommended to use the PageTypeMixin and TemplateType"
108-
" from feincms3.applications even if you're not planning to use"
109-
" any apps.",
110-
DeprecationWarning,
111-
stacklevel=1,
112-
)
113-
114103

115104
signals.class_prepared.connect(TemplateMixin.fill_template_key_choices)
116105

0 commit comments

Comments
 (0)