diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2014-12-12 23:21:45 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2014-12-12 23:21:45 +0100 |
commit | bc3a5dc47d6a0da3ffcc6d36b2041854b143ee59 (patch) | |
tree | 9203d4e291c65caae20c72870e5eb0e5f9702c40 /archaeological_files/views.py | |
parent | d0eaa4529f02cea7aa7939ea397f903b3f7d0a5e (diff) | |
download | Ishtar-bc3a5dc47d6a0da3ffcc6d36b2041854b143ee59.tar.bz2 Ishtar-bc3a5dc47d6a0da3ffcc6d36b2041854b143ee59.zip |
Better management of document generation form (refs #2132)
* check if the document template is compatible with the selected object
* remove dead code (old document generation form)
Diffstat (limited to 'archaeological_files/views.py')
-rw-r--r-- | archaeological_files/views.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/archaeological_files/views.py b/archaeological_files/views.py index bd91c1040..ba640a785 100644 --- a/archaeological_files/views.py +++ b/archaeological_files/views.py @@ -206,17 +206,3 @@ file_administrativeactfile_deletion_wizard = \ label=_(u"File: administrative act deletion"), url_name='file_administrativeactfile_deletion',) -def file_administrativeactfile_document(request): - dct = {} - if request.POST: - dct['search_form'] = AdministrativeActFileFormSelection(request.POST) - dct['template_form'] = DocumentGenerationAdminActForm(request.POST) - if dct['search_form'].is_valid() and dct['template_form'].is_valid(): - return generatedoc_administrativeactop(request, - dct['search_form'].cleaned_data.get('pk'), - dct['template_form'].cleaned_data.get('document_template')) - else: - dct['search_form'] = AdministrativeActFileFormSelection() - dct['template_form'] = DocumentGenerationAdminActForm() - return render_to_response('ishtar/administrativeact_document.html', dct, - context_instance=RequestContext(request)) |