summaryrefslogtreecommitdiff
path: root/archaeological_files/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2014-03-02 19:12:07 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2014-03-02 19:12:07 +0100
commit4d8c616b76edfe3bd8862b588e825d1e29d40950 (patch)
treee2ef8db4d09dddaf2d6e7500575a1ee1fa87d2e1 /archaeological_files/models.py
parent8ddbb2568d98e27eba9f601261b9f9717f3e558c (diff)
downloadIshtar-4d8c616b76edfe3bd8862b588e825d1e29d40950.tar.bz2
Ishtar-4d8c616b76edfe3bd8862b588e825d1e29d40950.zip
Specific form for research archaeology (refs #1682)
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r--archaeological_files/models.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py
index a94e4be86..9a42170c1 100644
--- a/archaeological_files/models.py
+++ b/archaeological_files/models.py
@@ -107,6 +107,33 @@ class File(BaseHistorizedItem, OwnPerms, ValueGetter):
postal_code = models.CharField(_(u"Main address - postal code"),
max_length=10, null=True, blank=True)
comment = models.TextField(_(u"Comment"), null=True, blank=True)
+ # research archaeology -->
+ departments = models.ManyToManyField(Department,
+ verbose_name=_(u"Departments"),
+ null=True, blank=True)
+ requested_operation_type = models.ForeignKey(
+ 'archaeological_operations.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"))
+ scientist = models.ForeignKey(Person, blank=True, null=True,
+ related_name='+',
+ verbose_name=_(u"Scientist in charge"))
+ research_comment = models.TextField(_(u"Research archaeology comment"),
+ null=True, blank=True)
+ classified_area = models.NullBooleanField(
+ _(u"Classified area"), blank=True, null=True)
+ protected_area = models.NullBooleanField(
+ _(u"Protected area"), blank=True, null=True)
+ if settings.COUNTRY == 'fr':
+ cira_advised = models.NullBooleanField(
+ u"Passage en CIRA", blank=True, null=True)
+ mh_register = models.NullBooleanField(
+ u"Sur Monument Historique classé", blank=True, null=True)
+ mh_listing = models.NullBooleanField(
+ u"Sur Monument Historique inscrit", blank=True, null=True)
+ # <-- research archaeology
cached_label = models.CharField(_(u"Cached name"), max_length=500,
null=True, blank=True)
history = HistoricalRecords()