Correct to use pub_date here, not a variable.
This commit is contained in:
parent
c7d4309149
commit
fb16e1127d
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ def all_authors():
|
||||||
key=last_name)
|
key=last_name)
|
||||||
|
|
||||||
def all_year_list():
|
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
|
# 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
|
# called for each web request. If we want to only make these database
|
||||||
|
|
Loading…
Reference in a new issue