[pirate-politics] r521 committed - fixed an issue with displaying every solution for issues that have no ...

0 views
Skip to first unread message

pirate-...@googlecode.com

unread,
Jan 22, 2011, 3:30:37 PM1/22/11
to pirate-poli...@googlegroups.com
Revision: 521
Author: fragro
Date: Sat Jan 22 12:29:38 2011
Log: fixed an issue with displaying every solution for issues that have no
topic. This is a problem on the current production test-server. It's been
over a week and the database flush operation still hasnt finished...
http://code.google.com/p/pirate-politics/source/detail?r=521

Modified:
/trunk/pirate-politics/pirate_issues/templatetags/solutiontags.py

=======================================
--- /trunk/pirate-politics/pirate_issues/templatetags/solutiontags.py Fri
Jan 21 16:05:49 2011
+++ /trunk/pirate-politics/pirate_issues/templatetags/solutiontags.py Sat
Jan 22 12:29:38 2011
@@ -119,7 +119,7 @@
if i.content_object.issue.topic == topic and
i.content_object.issue == issue:
solution_list.append(i.content_object)
elif not isinstance(topic, Topic):
- solution_list.append(i.content_object)
+ if i.content_object.issue == issue:
solution_list.append(i.content_object)

else: #catch all for no dimension grabs new objects
solution_list = solution_list.order_by('-submit_date')

Reply all
Reply to author
Forward
0 new messages