From b9e0bd3e889dd061afeeb7f6436eeccbf890f573 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 12 Jun 2011 19:20:36 -0400 Subject: [PATCH] Fixed issue where document type was not saved for locally uploaded documents, thanks to Brian Huxley for also finding this one --- apps/documents/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/documents/views.py b/apps/documents/views.py index 54c4d093ae..b1143d8760 100644 --- a/apps/documents/views.py +++ b/apps/documents/views.py @@ -179,6 +179,7 @@ def upload_document_with_type(request, source): try: if (not UNCOMPRESS_COMPRESSED_LOCAL_FILES) or (UNCOMPRESS_COMPRESSED_LOCAL_FILES and not _handle_zip_file(request, request.FILES['file'], document_type)): instance = form.save() + instance.save() if document_type: instance.document_type = document_type _handle_save_document(request, instance, form)