mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-04-24 19:32:53 +03:00
18 lines
505 B
Python
18 lines
505 B
Python
from django.core.checks import Warning
|
|
|
|
class AtomicSlugRetryMixin:
|
|
"""A Mixin keeped for backwards compatibility"""
|
|
|
|
@classmethod
|
|
def check(cls, **kwargs):
|
|
errors = super().check(**kwargs)
|
|
errors.append(
|
|
Warning(
|
|
'localized_fields.AtomicSlugRetryMixin is deprecated',
|
|
hint='There is no need to use '
|
|
'localized_fields.AtomicSlugRetryMixin',
|
|
obj=cls
|
|
)
|
|
)
|
|
return errors
|