summaryrefslogtreecommitdiff
path: root/archaeological_files/models.py
diff options
context:
space:
mode:
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
commitfaa3b69eb3dcda2731c7220bebef539fa05e8dd4 (patch)
tree6da650e7b8a8f4ae37e744ca4fce9afb5d660a09 /archaeological_files/models.py
parentdf3a0564362e1e4c43424af0d3034aeb0000c418 (diff)
downloadIshtar-faa3b69eb3dcda2731c7220bebef539fa05e8dd4.tar.bz2
Ishtar-faa3b69eb3dcda2731c7220bebef539fa05e8dd4.zip
Move operation types to ishtar_common
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r--archaeological_files/models.py5
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"),