diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-03 13:29:19 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-03 13:29:19 +0100 | 
| commit | 2dd76d272b7d2c034739d8dc726512a2e2540aa0 (patch) | |
| tree | 7108b211d2c9f66cdf52bc1f296f3a93d72f1554 /archaeological_operations/models.py | |
| parent | 57d04d11a5e173a775656bb8ed173a26704ed68f (diff) | |
| download | Ishtar-2dd76d272b7d2c034739d8dc726512a2e2540aa0.tar.bz2 Ishtar-2dd76d272b7d2c034739d8dc726512a2e2540aa0.zip | |
Sites: add locality and underwater fields (forms and sheet)
Diffstat (limited to 'archaeological_operations/models.py')
| -rw-r--r-- | archaeological_operations/models.py | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 20a476da0..6daf9dc12 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -92,7 +92,10 @@ class ArchaeologicalSite(BaseHistorizedItem):      SHOW_URL = 'show-site'      TABLE_COLS = ['reference', 'name', 'towns', 'periods', 'remains']      SLUG = 'site' -    BASE_SEARCH_VECTORS = ["reference", "name"] +    BASE_SEARCH_VECTORS = [ +        "reference", "name", "oceanographic_service_localisation", +        "shipwreck_code" +    ]      M2M_SEARCH_VECTORS = ["periods__name", "remains__name", "towns__name"]      PARENT_SEARCH_VECTORS = ['operations']      reference = models.CharField(_(u"Reference"), max_length=200, unique=True) @@ -115,7 +118,7 @@ class ArchaeologicalSite(BaseHistorizedItem):                                            null=True, blank=True)      # underwater      oceanographic_service_localisation = models.TextField( -        _("Oceanographic service localisation"), null=True, blank=True) +        _(u"Oceanographic service localisation"), null=True, blank=True)      shipwreck_code = models.TextField(          _(u"Shipwreck code"), null=True, blank=True)      sinking_date = models.DateField( | 
