Add default value property to TicketCustomField

Property of the model, so add it there to keep consistency
This commit is contained in:
Martin Whitehouse 2022-07-25 04:00:57 +02:00
parent 46f8e9d21f
commit bed7f0e493
No known key found for this signature in database
GPG Key ID: 3FCE1D3E9DEC09C1

View File

@ -1964,6 +1964,10 @@ class TicketCustomFieldValue(models.Model):
def __str__(self):
return '%s / %s' % (self.ticket, self.field)
@property
def default_value(self) -> str:
return _("Not defined")
class Meta:
unique_together = (('ticket', 'field'),)
verbose_name = _('Ticket custom field value')