mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-10-24 16:28:56 +03:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c7d0773f7 | ||
|
|
cc911d4909 |
@@ -16,14 +16,14 @@ from .field import LocalizedField
|
|||||||
class LocalizedAutoSlugField(LocalizedField):
|
class LocalizedAutoSlugField(LocalizedField):
|
||||||
"""Automatically provides slugs for a localized field upon saving."""
|
"""Automatically provides slugs for a localized field upon saving."""
|
||||||
|
|
||||||
warnings.warn(
|
|
||||||
"LocalizedAutoSlug is deprecated and will be removed in the next major version.",
|
|
||||||
DeprecationWarning,
|
|
||||||
)
|
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
"""Initializes a new instance of :see:LocalizedAutoSlugField."""
|
"""Initializes a new instance of :see:LocalizedAutoSlugField."""
|
||||||
|
|
||||||
|
warnings.warn(
|
||||||
|
"LocalizedAutoSlug is deprecated and will be removed in the next major version.",
|
||||||
|
DeprecationWarning,
|
||||||
|
)
|
||||||
|
|
||||||
self.populate_from = kwargs.pop("populate_from", None)
|
self.populate_from = kwargs.pop("populate_from", None)
|
||||||
self.include_time = kwargs.pop("include_time", False)
|
self.include_time = kwargs.pop("include_time", False)
|
||||||
|
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -36,7 +36,7 @@ with open(
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="django-localized-fields",
|
name="django-localized-fields",
|
||||||
version="6.5",
|
version="6.6",
|
||||||
packages=find_packages(exclude=["tests"]),
|
packages=find_packages(exclude=["tests"]),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
license="MIT License",
|
license="MIT License",
|
||||||
|
|||||||
Reference in New Issue
Block a user