diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-03-02 12:46:11 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-03-02 12:46:11 +0100 |
commit | 17bdf00cf6146ffde0ed68c587537f59b74cb835 (patch) | |
tree | fe6d093c9ce59c828a9592a118e3008928f25909 /archaeological_operations/models.py | |
parent | 078424d6ca6fc9b84b6d566855234a72b7c5eef1 (diff) | |
download | Ishtar-17bdf00cf6146ffde0ed68c587537f59b74cb835.tar.bz2 Ishtar-17bdf00cf6146ffde0ed68c587537f59b74cb835.zip |
Sheet operation - statistics number of parcels fix (refs #3726)WIP/v4.0
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index fda6101d2..204385c25 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -1998,10 +1998,10 @@ class Operation( def nb_parcels(self): _("Number of parcels") nb = 0 - if self.associated_file: - nb = self.associated_file.parcels.count() if not nb: nb = self.parcels.count() + if self.associated_file: + nb = self.associated_file.parcels.count() return nb @property |