diff options
author | Cefin <kevon@tuta.io> | 2022-03-14 16:49:44 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:58:49 +0200 |
commit | 182a9d4968ff3da41b145b07df0763a00b94354c (patch) | |
tree | e72ed7db300c12ef1783015345e1006aea0831b0 /archaeological_context_records/forms.py | |
parent | 9f9ef1c26fcc0a22545b0795a3978943f30241a3 (diff) | |
download | Ishtar-182a9d4968ff3da41b145b07df0763a00b94354c.tar.bz2 Ishtar-182a9d4968ff3da41b145b07df0763a00b94354c.zip |
Context Record, Bulk update : writing tests #5293
Diffstat (limited to 'archaeological_context_records/forms.py')
-rw-r--r-- | archaeological_context_records/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py index 9b2ae129c..0799991dd 100644 --- a/archaeological_context_records/forms.py +++ b/archaeological_context_records/forms.py @@ -754,7 +754,7 @@ class QAContextRecordFormMulti(QAForm): super(QAContextRecordFormMulti, self).__init__(*args, **kwargs) self.items = kwargs.pop("items") disable = False - if self.items > 1: + if len(self.items) > 1: op_pk = self.items[0].pk for cr in self.items[1:]: if op_pk != cr.operation.pk: |