Revert "LocalizedUniqueSlugField refactored"

This reverts commit 03df76d6d7.
This commit is contained in:
Swen Kooij
2017-05-25 17:23:39 +03:00
parent bf2995fd27
commit cff22855c2
4 changed files with 75 additions and 98 deletions

View File

@@ -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