forked from CGM_Public/pretix_original
Fixed validator classes to make them supported in migrations
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
|
from django.utils.deconstruct import deconstructible
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
|
|
||||||
@@ -16,6 +17,7 @@ class BlacklistValidator:
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@deconstructible
|
||||||
class EventSlugBlacklistValidator(BlacklistValidator):
|
class EventSlugBlacklistValidator(BlacklistValidator):
|
||||||
|
|
||||||
blacklist = [
|
blacklist = [
|
||||||
@@ -31,6 +33,7 @@ class EventSlugBlacklistValidator(BlacklistValidator):
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@deconstructible
|
||||||
class OrganizerSlugBlacklistValidator(BlacklistValidator):
|
class OrganizerSlugBlacklistValidator(BlacklistValidator):
|
||||||
|
|
||||||
blacklist = [
|
blacklist = [
|
||||||
|
|||||||
Reference in New Issue
Block a user