diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-12-17 01:53:53 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-12-17 01:53:53 +0100 |
commit | d8590171c727a9bd3cc3deca0fc8189f1da53227 (patch) | |
tree | 10b2770b19fde76764d3a028fd01ae3ebe8176f5 /archaeological_operations/wizards.py | |
parent | 2789ba690ffc72c17f47a1c705edd28c5cb72cd7 (diff) | |
download | Ishtar-d8590171c727a9bd3cc3deca0fc8189f1da53227.tar.bz2 Ishtar-d8590171c727a9bd3cc3deca0fc8189f1da53227.zip |
Choose document to generate at the end of create/modif process
Diffstat (limited to 'archaeological_operations/wizards.py')
-rw-r--r-- | archaeological_operations/wizards.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py index 86af26351..a61452733 100644 --- a/archaeological_operations/wizards.py +++ b/archaeological_operations/wizards.py @@ -281,7 +281,8 @@ class OperationAdministrativeActWizard(OperationWizard): except models.ActType.DoesNotExist: pass if act_type and act_type.associated_template.count(): - context['extra_form'] = GenerateDocForm() + context['extra_form'] = GenerateDocForm( + choices=act_type.associated_template.all()) return context def get_associated_item(self, dct): @@ -323,7 +324,7 @@ class OperationAdministrativeActWizard(OperationWizard): if level == len(keys): # the whole tree as been traversed # redirect to the generated doc dct['redirect'] = reverse('generatedoc-administrativeactop', - args=[admact.pk]) + args=[admact.pk, r[0]]) res = render_to_response('ishtar/wizard/wizard_done.html', dct, context_instance=RequestContext(self.request)) |