Source

cmsplugin-poll / cmsplugin_poll / templatetags / poll_tags.py

Diff from to

File cmsplugin_poll/templatetags/poll_tags.py

 
 @register.simple_tag
 def get_latest_polls(count=5):
-    polls = Poll.objects.all().order_by("-pub_date")[:5]
+    "FIXME: I'm useless!"
+    polls = Poll.objects.all()[:5]
     return render_to_string("cmsplugin_poll/latest_polls.html", {
             "polls" : polls
             })