mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-10-25 16:38:57 +03:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
946e9a67c4 | ||
|
|
36f6e946b0 | ||
|
|
909ebfee69 | ||
|
|
95284e6fd0 |
@@ -61,6 +61,13 @@ Installation
|
||||
('ro', 'Romanian')
|
||||
)
|
||||
|
||||
|
||||
4. Apply migrations to enable the HStore extension:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
python manage.py migrate
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
|
||||
@@ -17,17 +17,17 @@ class LocalizedAutoSlugField(LocalizedField):
|
||||
"""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):
|
||||
"""Initializes a new instance of :see:LocalizedAutoSlugField."""
|
||||
|
||||
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