this should add tags into the database from raw document uploads, closes #150
authorBryan <btbonval@gmail.com>
Thu, 2 Jan 2014 19:14:43 +0000 (14:14 -0500)
committerBryan <btbonval@gmail.com>
Thu, 2 Jan 2014 19:14:43 +0000 (14:14 -0500)
karmaworld/apps/document_upload/views.py

index 1b256432e12dae4159cd021e117e0122f24a1420..a46be7874332e724b4b722bc6ea8ef9b76ec8c9d 100644 (file)
@@ -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