diff options
Diffstat (limited to 'archaeological_operations/models.py')
| -rw-r--r-- | archaeological_operations/models.py | 13 | 
1 files changed, 9 insertions, 4 deletions
| diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index a67397d1d..c342fb2a4 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -94,7 +94,8 @@ class ArchaeologicalSite(BaseHistorizedItem):      SLUG = 'site'      BASE_SEARCH_VECTORS = [          "reference", "name", "oceanographic_service_localisation", -        "shipwreck_code" +        "shipwreck_code", "comment", "shipwreck_name", "discovery_area" +      ]      M2M_SEARCH_VECTORS = ["periods__name", "remains__name", "towns__name"]      PARENT_SEARCH_VECTORS = ['operations'] @@ -107,6 +108,7 @@ class ArchaeologicalSite(BaseHistorizedItem):                                       blank=True)      towns = models.ManyToManyField(Town, verbose_name=_(u"Towns"),                                     related_name='sites', blank=True) +    comment = models.TextField(_(u"Comment"), null=True, blank=True)      top_operation = models.ForeignKey("Operation", blank=True, null=True,                                        verbose_name=_(u"Top operation"),                                        on_delete=models.SET_NULL) @@ -342,8 +344,11 @@ class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms,          'archaeological_sites__reference': _(u"Archaeological sites ("                                               u"reference)"),      } -    BASE_SEARCH_VECTORS = ["scientist__raw_name", "cached_label", -                           "common_name", "comment", "address", "old_code"] +    BASE_SEARCH_VECTORS = [ +        "scientist__raw_name", "cached_label", "common_name", "comment", +        "address", "old_code", "seizure_name", "official_report_number", +        "name_of_the_protagonist" +    ]      INT_SEARCH_VECTORS = ["year"]      M2M_SEARCH_VECTORS = ["towns__name"]      ASSOCIATED = { @@ -443,7 +448,7 @@ class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms,          _(u"Operator reference"), max_length=20, null=True, blank=True)      common_name = models.TextField(_(u"Generic name"), null=True, blank=True)      address = models.TextField(_(u"Address / Locality"), null=True, blank=True) -    comment = models.TextField(_(u"General comment"), null=True, blank=True) +    comment = models.TextField(_(u"Comment"), null=True, blank=True)      scientific_documentation_comment = models.TextField(          _(u"Comment about scientific documentation"), null=True, blank=True)      images = models.ManyToManyField(IshtarImage, verbose_name=_(u"Images"), | 
