Author: gregoryjnewman
Date: Sat Sep 20 03:52:51 2008
New Revision: 903

Modified:
    trunk/core_apps/photos/views.py

Log:
redirecting to photo detail template after upload

Modified: trunk/core_apps/photos/views.py
==============================================================================
--- trunk/core_apps/photos/views.py     (original)
+++ trunk/core_apps/photos/views.py     Sat Sep 20 03:52:51 2008
@@ -28,7 +28,7 @@
                  photo.member = request.user
                  photo.save()
                  request.user.message_set.create(message=_("Successfully  
uploaded photo '%s'") % photo.title)
-                return HttpResponseRedirect(reverse("photo_upload"))
+                return HttpResponseRedirect(reverse('details',  
args=(photo.id,)))

      return render_to_response("photos/upload.html", {"photo_form":  
photo_form}, context_instance=RequestContext(request))


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to