mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-25 01:13:31 +01:00
Add default value property to TicketCustomField
Property of the model, so add it there to keep consistency
This commit is contained in:
parent
46f8e9d21f
commit
bed7f0e493
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user