Author: gregoryjnewman
Date: Thu Sep 11 15:26:46 2008
New Revision: 871

Modified:
    trunk/pinax/local_apps/photos/views.py

Log:
adding @login_required for your_posts in blog view otherwise can't adapt  
errors are showing up

Modified: trunk/pinax/local_apps/photos/views.py
==============================================================================
--- trunk/pinax/local_apps/photos/views.py      (original)
+++ trunk/pinax/local_apps/photos/views.py      Thu Sep 11 15:26:46 2008
@@ -84,7 +84,7 @@
              else:
                  # TODO: this applies to pinax in general. dont use  
ugettext_lazy here. its usage is fragile.
                  request.user.message_set.create(message=_("Did not add  
photo '%s' to project because it already exists.") % title)
-            # TODO: figure out why reverse doesn't work and redo this
+
              return HttpResponseRedirect(reverse('details',  
args=(photo.id,)))

          if request.method == "POST":
@@ -97,7 +97,7 @@
                  else:
                      # TODO: this applies to pinax in general. dont use  
ugettext_lazy here. its usage is fragile.
                      request.user.message_set.create(message=_("Did not add  
photo '%s' to tribe because it already exists.") % title)
-                # TODO: figure out why reverse doesn't work and redo this
+
                  return HttpResponseRedirect(reverse('details',  
args=(photo.id,)))

              if request.POST["action"] == "removefromtribe":
@@ -109,7 +109,7 @@
                  else:
                      # TODO: this applies to pinax in general. dont use  
ugettext_lazy here. its usage is fragile.
                      request.user.message_set.create(message=_("Did not add  
photo '%s' to tribe because it already exists.") % title)
-                # TODO: figure out why reverse doesn't work and redo this
+
                  return HttpResponseRedirect(reverse('details',  
args=(photo.id,)))



--~--~---------~--~----~------------~-------~--~----~
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