From 21ebc51eab485908c5b8cf31262a7048dd923bb9 Mon Sep 17 00:00:00 2001 From: Bryan Date: Thu, 2 Jan 2014 14:14:43 -0500 Subject: [PATCH] this should add tags into the database from raw document uploads, closes #150 --- karmaworld/apps/document_upload/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/karmaworld/apps/document_upload/views.py b/karmaworld/apps/document_upload/views.py index 1b25643..a46be78 100644 --- a/karmaworld/apps/document_upload/views.py +++ b/karmaworld/apps/document_upload/views.py @@ -29,6 +29,8 @@ def save_fp_upload(request): time_c = datetime.datetime.now() # note that .save() has the side-effect of kicking of a celery processing task raw_document.save() + # save the tags to the database, too. don't forget those guys. + r_d_f.save_m2m() time_d = datetime.datetime.now() delta = time_d - time_c print "d\t%s" % delta -- 2.25.1