diff options
| 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 | 
| commit | af42287a7a113da28f1f9aab54cfc2e96c9a6d90 (patch) | |
| tree | e2ef8db4d09dddaf2d6e7500575a1ee1fa87d2e1 /archaeological_files/models.py | |
| parent | 9bafeee09b680bc599bfb1664ead9b69a5fd451e (diff) | |
| download | Ishtar-af42287a7a113da28f1f9aab54cfc2e96c9a6d90.tar.bz2 Ishtar-af42287a7a113da28f1f9aab54cfc2e96c9a6d90.zip | |
Specific form for research archaeology (refs #1682)
Diffstat (limited to 'archaeological_files/models.py')
| -rw-r--r-- | archaeological_files/models.py | 27 | 
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() | 
