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 | cf5697b39ca00243e08adf733bdfe16792d8a5d3 (patch) | |
tree | 9889b35d61c73ff63a8fa48ebe4f2621220c8337 /archaeological_operations/forms.py | |
parent | 52b513e0737f65e30b5e886f728a7fae16ace4c2 (diff) | |
download | Ishtar-cf5697b39ca00243e08adf733bdfe16792d8a5d3.tar.bz2 Ishtar-cf5697b39ca00243e08adf733bdfe16792d8a5d3.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') |