mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-10-29 18:18:57 +03:00
Officially deprecate LocalizedAutoSlugField
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import warnings
|
||||
|
||||
from typing import Callable, Tuple, Union
|
||||
from datetime import datetime
|
||||
|
||||
@@ -21,6 +23,11 @@ class LocalizedAutoSlugField(LocalizedField):
|
||||
self.populate_from = kwargs.pop('populate_from', None)
|
||||
self.include_time = kwargs.pop('include_time', False)
|
||||
|
||||
warnings.warn(
|
||||
'LocalizedAutoSlug is deprecated and will be removed in the next major version.',
|
||||
DeprecationWarning
|
||||
)
|
||||
|
||||
super(LocalizedAutoSlugField, self).__init__(
|
||||
*args,
|
||||
**kwargs
|
||||
|
||||
Reference in New Issue
Block a user