Author: gregoryjnewman
Date: Fri Sep 12 04:08:30 2008
New Revision: 877
Modified:
trunk/pinax/local_apps/photos/views.py
Log:
fixing project query
Modified: trunk/pinax/local_apps/photos/views.py
==============================================================================
--- trunk/pinax/local_apps/photos/views.py (original)
+++ trunk/pinax/local_apps/photos/views.py Fri Sep 12 04:08:30 2008
@@ -67,7 +67,7 @@
p = []
if projects:
for project in projects:
- photoproject = Project.objects.get(pk=tribe.id)
+ photoproject = Project.objects.get(pk=project.id)
if photoproject.photos.filter(photo=photo).count():
p.append({"name":project.name, "slug":project.slug, "id":project.id,
"has_photo":True})
else:
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---