mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-10-29 10:08:57 +03:00
AutoSlugField should not use LIKE
This commit is contained in:
@@ -78,7 +78,7 @@ class LocalizedAutoSlugField(LocalizedField):
|
||||
"""Gets whether the specified slug is unique."""
|
||||
|
||||
unique_filter = {
|
||||
'%s__%s__contains' % (self.name, language): slug
|
||||
'%s__%s' % (self.name, language): slug
|
||||
}
|
||||
|
||||
return not type(instance).objects.filter(**unique_filter).exists()
|
||||
|
||||
Reference in New Issue
Block a user