projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e760249
)
this should add tags into the database from raw document uploads, closes #150
author
Bryan
<btbonval@gmail.com>
Thu, 2 Jan 2014 19:14:43 +0000
(14:14 -0500)
committer
Bryan
<btbonval@gmail.com>
Thu, 2 Jan 2014 19:14:43 +0000
(14:14 -0500)
karmaworld/apps/document_upload/views.py
patch
|
blob
|
history
diff --git
a/karmaworld/apps/document_upload/views.py
b/karmaworld/apps/document_upload/views.py
index 1b256432e12dae4159cd021e117e0122f24a1420..a46be7874332e724b4b722bc6ea8ef9b76ec8c9d 100644
(file)
--- 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