From 50955cb8f6e96b9730800e50f5ae9fb537ae3630 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Fri, 7 Oct 2016 11:00:25 +0200 Subject: [PATCH] Fixed Meta class definition for TicketCustomFieldValue. --- helpdesk/models.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/helpdesk/models.py b/helpdesk/models.py index 8599093a..a3a9c7e4 100644 --- a/helpdesk/models.py +++ b/helpdesk/models.py @@ -1411,9 +1411,7 @@ class TicketCustomFieldValue(models.Model): return '%s / %s' % (self.ticket, self.field) class Meta: - unique_together = ('ticket', 'field'), - - class Meta: + unique_together = (('ticket', 'field'),) verbose_name = _('Ticket custom field value') verbose_name_plural = _('Ticket custom field values') @@ -1441,6 +1439,6 @@ class TicketDependency(models.Model): return '%s / %s' % (self.ticket, self.depends_on) class Meta: - unique_together = ('ticket', 'depends_on') + unique_together = (('ticket', 'depends_on'),) verbose_name = _('Ticket dependency') verbose_name_plural = _('Ticket dependencies')