mirror of
https://github.com/pretix/pretix.git
synced 2026-05-12 16:24:00 +00:00
Manage item properties
This commit is contained in:
@@ -393,10 +393,18 @@ class PropertyValue(models.Model):
|
||||
max_length=250,
|
||||
verbose_name=_("Value"),
|
||||
)
|
||||
position = models.IntegerField(
|
||||
default=0
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return "%s: %s" % (self.prop.name, self.value)
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("Property value")
|
||||
verbose_name_plural = _("Property values")
|
||||
ordering = ("position",)
|
||||
|
||||
|
||||
class Item(models.Model):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user