forked from CGM_Public/pretix_original
Use reproducible ordering for meta properties
This commit is contained in:
@@ -1642,6 +1642,9 @@ class EventMetaProperty(LoggedModel):
|
|||||||
if self.default and self.allowed_values and self.default not in self.allowed_values.splitlines():
|
if self.default and self.allowed_values and self.default not in self.allowed_values.splitlines():
|
||||||
raise ValidationError(_("You cannot set a default value that is not a valid value."))
|
raise ValidationError(_("You cannot set a default value that is not a valid value."))
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
ordering = ("name",)
|
||||||
|
|
||||||
|
|
||||||
class EventMetaValue(LoggedModel):
|
class EventMetaValue(LoggedModel):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1800,6 +1800,9 @@ class ItemMetaProperty(LoggedModel):
|
|||||||
)
|
)
|
||||||
default = models.TextField(blank=True)
|
default = models.TextField(blank=True)
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
ordering = ("name",)
|
||||||
|
|
||||||
|
|
||||||
class ItemMetaValue(LoggedModel):
|
class ItemMetaValue(LoggedModel):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user