diff options
Diffstat (limited to 'archaeological_context_records')
-rw-r--r-- | archaeological_context_records/models.py | 2 | ||||
-rw-r--r-- | archaeological_context_records/tests.py | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 5e9d63652..e8cc60d43 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -467,8 +467,6 @@ class ContextRecord(BulkUpdatedItem, BaseHistorizedItem, + list(BaseFind.objects.filter(context_record=self).all()) def _cached_labels_bulk_update(self): - if settings.TESTING and settings.USE_SPATIALITE_FOR_TESTS: - return self.base_finds.model.cached_label_bulk_update( context_record_id=self.pk) return True diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py index d93662a27..6ac1e6873 100644 --- a/archaeological_context_records/tests.py +++ b/archaeological_context_records/tests.py @@ -321,10 +321,6 @@ class ContextRecordTest(ContextRecordInit, TestCase): self.assertEqual(ope_id, 'OP2017-1') def test_downstream_cache_update(self): - if settings.USE_SPATIALITE_FOR_TESTS: - # using views - can only be tested with postgresql - return - cr = self.create_context_record()[0] from archaeological_finds.models import Find, BaseFind, MaterialType |