Author: gregoryjnewman
Date: Thu Sep 11 16:51:54 2008
New Revision: 874

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

Log:
changing some messages on photos

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 16:51:54 2008
@@ -105,10 +105,10 @@
                  mytribe = Tribe.objects.get(pk=tribeid)
                  if mytribe.photos.filter(photo=photo).count():
                      mytribe.photos.filter(photo=photo).delete()
-                     
request.user.message_set.create(message=_("Successfully add photo '%s' to  
tribe") % title)
+                     
request.user.message_set.create(message=_("Successfully removed photo '%s'  
from tribe") % title)
                  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)
+                    request.user.message_set.create(message=_("Did not  
remove photo '%s' from tribe.") % title)

                  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