Changeset - f723a74f5110
[Not reviewed]
0 2 0
Bradley Kuhn (bkuhn) - 8 years ago 2015-01-03 14:53:44
bkuhn@ebb.org
Support anonymous supporter listings by count.

Remove anonymous listing from the alphabetical supporters list and
instead list them by count found.
2 files changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
www/conservancy/sponsors.py
Show inline comments
...
 
@@ -11,5 +11,8 @@ def view(request):
 
    supporters = Supporter.objects.all().filter(display_until_date__gte=datetime.now())
 
    anonymous_count  = len(supporters.filter(display_name = 'Anonymous'))
 
    supporters = supporters.exclude(display_name = 'Anonymous')
 

	
 
    c = {
 
        'supporters' : supporters
 
        'supporters' : supporters,
 
        'anonymous_count' : anonymous_count
 
    }
www/conservancy/templates/sponsors.html
Show inline comments
...
 
@@ -60,2 +60,3 @@ any of its sponsors.</p>
 
<ul id="supporters">
 
<li>Anonymous ({{anonymous_count|safe}} people)</li>
 
{% for ss in supporters %}
0 comments (0 inline, 0 general)