mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-10-29 18:18:57 +03:00
Revert "LocalizedUniqueSlugField refactored"
This reverts commit 03df76d6d7.
This commit is contained in:
@@ -3,6 +3,7 @@ from django.db.migrations.executor import MigrationExecutor
|
||||
from django.contrib.postgres.operations import HStoreExtension
|
||||
|
||||
from localized_fields.models import LocalizedModel
|
||||
from localized_fields.mixins import AtomicSlugRetryMixin
|
||||
|
||||
|
||||
def define_fake_model(name='TestModel', fields=None):
|
||||
@@ -15,7 +16,7 @@ def define_fake_model(name='TestModel', fields=None):
|
||||
if fields:
|
||||
attributes.update(fields)
|
||||
|
||||
model = type(name, (LocalizedModel,), attributes)
|
||||
model = type(name, (AtomicSlugRetryMixin,LocalizedModel,), attributes)
|
||||
return model
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user