From faa3b69eb3dcda2731c7220bebef539fa05e8dd4 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 9 Nov 2015 12:43:36 +0100 Subject: Move operation types to ishtar_common --- archaeological_files/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'archaeological_files/models.py') diff --git a/archaeological_files/models.py b/archaeological_files/models.py index a35656995..0499efce6 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -30,7 +30,8 @@ from ishtar_common.utils import cached_label_changed, get_cache from ishtar_common.models import GeneralType, BaseHistorizedItem, \ HistoricalRecords, OwnPerms, Person, Organization, Department, Town, \ - Dashboard, DashboardFormItem, IshtarUser, ValueGetter, ShortMenuItem + Dashboard, DashboardFormItem, IshtarUser, ValueGetter, ShortMenuItem, \ + OperationType from archaeological_operations.models import get_values_town_related @@ -147,7 +148,7 @@ class File(BaseHistorizedItem, OwnPerms, ValueGetter, ShortMenuItem, departments = models.ManyToManyField( Department, verbose_name=_(u"Departments"), null=True, blank=True) requested_operation_type = models.ForeignKey( - 'archaeological_operations.OperationType', related_name='+', null=True, + OperationType, related_name='+', null=True, blank=True, verbose_name=_(u"Requested operation type")) organization = models.ForeignKey( Organization, blank=True, null=True, verbose_name=_(u"Organization"), -- cgit v1.2.3