Ordering likely screwed up when I muck with query.

Force order_by at the end of my mucking.
This commit is contained in:
Bradley M. Kuhn 2015-01-04 12:26:25 -05:00
parent 5688ffcd48
commit dbeada5b0b

View file

@ -11,7 +11,7 @@ def view(request):
supporters = Supporter.objects.all().filter(display_until_date__gte=datetime.now())
supporters_count = len(supporters)
anonymous_count = len(supporters.filter(display_name = 'Anonymous'))
supporters = supporters.exclude(display_name = 'Anonymous')
supporters = supporters.exclude(display_name = 'Anonymous').order_by('ledger_entity_id')
c = {
'supporters' : supporters,