diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-02 16:36:58 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-02 16:36:58 +0100 | 
| commit | 18facb132a0a139a71671bd9d9840615421920d1 (patch) | |
| tree | 70c4f45e2b70a8dcb3c9b59464731b1a0236d7f3 /archaeological_operations/models.py | |
| parent | 35f78f2960e0121e8508c3703bea8b8c22ad651e (diff) | |
| download | Ishtar-18facb132a0a139a71671bd9d9840615421920d1.tar.bz2 Ishtar-18facb132a0a139a71671bd9d9840615421920d1.zip  | |
No more test with spatialite :( Too much cool PostgreSQL features used.
Diffstat (limited to 'archaeological_operations/models.py')
| -rw-r--r-- | archaeological_operations/models.py | 11 | 
1 files changed, 2 insertions, 9 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index d46d55089..14631bd10 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -489,8 +489,6 @@ class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms,          return list(self.context_record.all())      def _cached_labels_bulk_update(self): -        if settings.TESTING and settings.USE_SPATIALITE_FOR_TESTS: -            return          self.context_record.model.cached_label_bulk_update(operation_id=self.pk)          return True @@ -1470,13 +1468,8 @@ def parcel_post_save(sender, **kwargs):          return      if parcel.context_record.count(): -        if settings.TESTING and settings.USE_SPATIALITE_FOR_TESTS: -            for cr in parcel.context_record.all(): -                cr.skip_history_when_saving = True -                cr.save() -        else: -            parcel.context_record.model.cached_label_bulk_update( -                parcel_id=parcel.id) +        parcel.context_record.model.cached_label_bulk_update( +            parcel_id=parcel.id)      if parcel.operation and parcel.operation.pk and \              parcel.town not in list(parcel.operation.towns.all()):  | 
