mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-10-29 18:18:57 +03:00
Updated base classes in documentation
This commit is contained in:
@@ -29,12 +29,12 @@ class LocalizedUniqueSlugField(LocalizedAutoSlugField):
|
||||
self.populate_from = kwargs.pop('populate_from')
|
||||
kwargs['uniqueness'] = kwargs.pop('uniqueness', get_language_codes())
|
||||
|
||||
super(LocalizedAutoSlugField, self).__init__(
|
||||
super(LocalizedUniqueSlugField, self).__init__(
|
||||
*args,
|
||||
**kwargs
|
||||
)
|
||||
|
||||
def pre_save(self, instance, add: bool):
|
||||
def pre_save(self, instance, _add: bool):
|
||||
"""Ran just before the model is saved, allows us to built
|
||||
the slug.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user