File diff c7d4309149a8 → fb16e1127dd4
www/conservancy/apps/blog/urls.py
Show inline comments
...
 
@@ -59,13 +59,13 @@ def all_tags_by_use_amount():
 

	
 
def all_authors():
 
    return sorted(Person.objects.filter(entry__isnull=False).distinct(),
 
                  key=last_name)
 

	
 
def all_year_list():
 
    return Entry.objects.dates(date_field, 'year')
 
    return Entry.objects.dates('pub_date', 'year')
 

	
 
# The functions are passed to the context uncalled so they will be
 
# called for each web request.  If we want to only make these database
 
# queries a single time when a web server process begins, call both
 
# functions below (i.e. make both lines below end in '()')