summaryrefslogtreecommitdiff
path: root/archaeological_files/models.py
diff options
context:
space:
mode:
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()