diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-11-09 12:43:36 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-11-09 12:43:36 +0100 |
commit | 4b026618981c6523170520e6c7d77b0d7082ae4a (patch) | |
tree | 6da650e7b8a8f4ae37e744ca4fce9afb5d660a09 /archaeological_files/models.py | |
parent | 8d66d66a9315f3625884e168dbd79784a7144718 (diff) | |
download | Ishtar-4b026618981c6523170520e6c7d77b0d7082ae4a.tar.bz2 Ishtar-4b026618981c6523170520e6c7d77b0d7082ae4a.zip |
Move operation types to ishtar_common
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r-- | archaeological_files/models.py | 5 |
1 files changed, 3 insertions, 2 deletions
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"), |