summaryrefslogtreecommitdiff
path: root/archaeological_operations/views.py
diff options
context:
space:
mode:
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
commitd8590171c727a9bd3cc3deca0fc8189f1da53227 (patch)
tree10b2770b19fde76764d3a028fd01ae3ebe8176f5 /archaeological_operations/views.py
parent2789ba690ffc72c17f47a1c705edd28c5cb72cd7 (diff)
downloadIshtar-d8590171c727a9bd3cc3deca0fc8189f1da53227.tar.bz2
Ishtar-d8590171c727a9bd3cc3deca0fc8189f1da53227.zip
Choose document to generate at the end of create/modif process
Diffstat (limited to 'archaeological_operations/views.py')
-rw-r--r--archaeological_operations/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py
index c899b1c4d..183c80b83 100644
--- a/archaeological_operations/views.py
+++ b/archaeological_operations/views.py
@@ -260,7 +260,7 @@ operation_administrativeactop_deletion_wizard = \
label=_(u"Operation: administrative act deletion"),
url_name='operation_administrativeactop_deletion',)
-def generatedoc_administrativeactop(request, pk):
+def generatedoc_administrativeactop(request, pk, template_pk=None):
if (not request.user.has_perm('ishtar_common.view_operation',
models.Operation)
and not request.user.has_perm('ishtar_common.view_own_operation',
@@ -268,7 +268,7 @@ def generatedoc_administrativeactop(request, pk):
return HttpResponse(mimetype='text/plain')
try:
act_file = models.AdministrativeAct.objects.get(pk=pk)
- doc = act_file.publish()
+ doc = act_file.publish(template_pk)
except models.AdministrativeAct.DoesNotExist:
doc = None
if doc: