summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index a09798f1f..aa1e2dcb4 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -109,9 +109,11 @@ post_delete.connect(post_save_cache, sender=RecordQualityType)
class ArchaeologicalSite(BaseHistorizedItem, QRCodeItem, GeoItem, OwnPerms,
ValueGetter, ShortMenuItem):
+ SLUG = 'site'
+ APP = "archaeological-operations"
+ MODEL = "archaeological-site"
SHOW_URL = 'show-site'
TABLE_COLS = ['reference', 'name', 'towns_label', 'periods', 'remains']
- SLUG = 'site'
LONG_SLUG = 'archaeologicalsite'
BASE_SEARCH_VECTORS = [
@@ -511,10 +513,12 @@ class OperationManager(models.GeoManager):
class Operation(ClosedItem, BaseHistorizedItem, QRCodeItem, GeoItem, OwnPerms,\
ValueGetter, ShortMenuItem, DashboardFormItem, RelationItem):
+ SLUG = 'operation'
+ APP = "archaeological-operations"
+ MODEL = "operation"
SHOW_URL = 'show-operation'
TABLE_COLS = ['year', 'towns_label', 'common_name', 'operation_type',
'start_date', 'excavation_end_date', 'remains']
- SLUG = 'operation'
# search parameters
BOOL_FIELDS = ['end_date__isnull', 'virtual_operation',