Use reproducible ordering for meta properties

This commit is contained in:
Raphael Michel
2023-02-13 12:01:50 +01:00
parent 2607b18833
commit 6d20500f52
2 changed files with 6 additions and 0 deletions

View File

@@ -1642,6 +1642,9 @@ class EventMetaProperty(LoggedModel):
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."))
class Meta:
ordering = ("name",)
class EventMetaValue(LoggedModel):
"""

View File

@@ -1800,6 +1800,9 @@ class ItemMetaProperty(LoggedModel):
)
default = models.TextField(blank=True)
class Meta:
ordering = ("name",)
class ItemMetaValue(LoggedModel):
"""