From: Bryan Date: Thu, 2 Jan 2014 19:14:43 +0000 (-0500) Subject: this should add tags into the database from raw document uploads, closes #150 X-Git-Tag: release-20150131~331 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=21ebc51eab485908c5b8cf31262a7048dd923bb9;p=oweals%2Fkarmaworld.git this should add tags into the database from raw document uploads, closes #150 --- 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