summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-11-13 18:55:30 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-11-14 16:57:37 +0100
commitd0d146cc099bfe2d58a8c8ec6e57096661d1fdcb (patch)
tree1007a19ed094bb463a9234909d84412a379a3c9c /archaeological_context_records/models.py
parent1d1fd6c794c8ca8e758fc416b43e0f881136057f (diff)
downloadIshtar-d0d146cc099bfe2d58a8c8ec6e57096661d1fdcb.tar.bz2
Ishtar-d0d146cc099bfe2d58a8c8ec6e57096661d1fdcb.zip
⚡️ improve parcel post-treatments - add timestamp to prevent multiple geo and cached_label edition
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r--archaeological_context_records/models.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index 985390861..2f9737c14 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -378,26 +378,6 @@ post_save.connect(post_save_cache, sender=DocumentationType)
post_delete.connect(post_save_cache, sender=DocumentationType)
-class CRBulkView(object):
- CREATE_SQL = """
- CREATE VIEW context_records_cached_label_bulk_update
- AS (
- SELECT cr.id AS id, ope.code_patriarche AS main_code,
- ope.year AS year,
- ope.operation_code AS ope_code,
- parcel.section AS section,
- parcel.parcel_number AS number, cr.label AS label
- FROM archaeological_context_records_contextrecord AS cr
- INNER JOIN archaeological_operations_operation ope
- ON ope.id = cr.operation_id
- INNER JOIN archaeological_operations_parcel parcel
- ON cr.parcel_id = parcel.id
- );"""
- DELETE_SQL = """
- DROP VIEW IF EXISTS context_records_cached_label_bulk_update;
- """
-
-
class GeographicSubTownItem(GeoItem):
UPPER_GEO = []