diff options
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 20 |
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 = [] |