From: Seth Woodworth Date: Wed, 23 Jan 2013 23:44:04 +0000 (-0500) Subject: modify the returned note_url from file upload to decide where to post filemeta form X-Git-Tag: release-20150131~546^2~15 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=701070f2848c7259b56e4e62bd34b3a8784f52bf;p=oweals%2Fkarmaworld.git modify the returned note_url from file upload to decide where to post filemeta form --- diff --git a/karmaworld/apps/ajaxuploader/backends/local.py b/karmaworld/apps/ajaxuploader/backends/local.py index 67494af..ac083d8 100644 --- a/karmaworld/apps/ajaxuploader/backends/local.py +++ b/karmaworld/apps/ajaxuploader/backends/local.py @@ -78,7 +78,7 @@ class LocalUploadBackend(AbstractUploadBackend): print "upload_complete, firing task" tasks.process_document.delay(note) - return {"path": path, "file_pk": note.pk} + return {'note_url': note.get_absolute_url()} def update_filename(self, request, filename): """