diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-02-24 23:30:23 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:21:00 +0100 |
commit | 4286395e83bc27f853f0919c988a716dc2b6a345 (patch) | |
tree | 26f0daf8d47183130713be5dfc52b8e788e21dc4 /archaeological_finds | |
parent | a14d0067a933ff3898773119fb85146545530dc3 (diff) | |
download | Ishtar-4286395e83bc27f853f0919c988a716dc2b6a345.tar.bz2 Ishtar-4286395e83bc27f853f0919c988a716dc2b6a345.zip |
Geodata redesign: context record, base find migration
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models_finds.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index bc1d64ee6..ce9a5e4af 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -55,7 +55,6 @@ from ishtar_common.models import ( ValueGetter, get_current_profile, IshtarSiteProfile, - GeoItem, BulkUpdatedItem, QuickAction, MainItem, @@ -76,7 +75,8 @@ from archaeological_operations.models import ( Operation, CulturalAttributionType, ) -from archaeological_context_records.models import ContextRecord, Dating +from archaeological_context_records.models import ContextRecord, Dating, \ + GeographicSubTownItem from archaeological_warehouse.models import Warehouse @@ -386,7 +386,7 @@ class BFBulkView(object): class BaseFind( BulkUpdatedItem, BaseHistorizedItem, - GeoItem, + GeographicSubTownItem, CompleteIdentifierItem, OwnPerms, ValueGetter, @@ -486,6 +486,9 @@ class BaseFind( def __str__(self): return self.label + def _get_geo_town(self): + return self.context_record._get_geo_town() + def natural_key(self): return (self.uuid,) |