diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-11 18:15:35 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-11 18:15:35 +0100 |
commit | c61696e6fc307905e333b5de170cee395bf8b1da (patch) | |
tree | 9889b35d61c73ff63a8fa48ebe4f2621220c8337 /archaeological_operations/forms.py | |
parent | 35897953208aa60ee306aba73963dda34a553cb0 (diff) | |
download | Ishtar-c61696e6fc307905e333b5de170cee395bf8b1da.tar.bz2 Ishtar-c61696e6fc307905e333b5de170cee395bf8b1da.zip |
Manage document generation for treatment and file treatment administrative act
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r-- | archaeological_operations/forms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index b3f203e53..edd25da60 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -1403,8 +1403,8 @@ class DocumentGenerationAdminActForm(forms.Form): def __init__(self, *args, **kwargs): self.document_type = 'O' - if 'operation' in kwargs: - self.document_type = 'O' if kwargs.pop('operation') else 'F' + if 'document_type' in kwargs: + self.document_type = kwargs.pop('document_type') self.obj = None if 'obj' in kwargs: self.obj = kwargs.pop('obj') |