From fb16e1127dd41107c540a23110aecee58b23dd2e 2015-03-04 23:43:04 From: Bradley M. Kuhn Date: 2015-03-04 23:43:04 Subject: [PATCH] Correct to use pub_date here, not a variable. --- diff --git a/www/conservancy/apps/blog/urls.py b/www/conservancy/apps/blog/urls.py index f75f96e0ab0d887298076307cdf8df8f2af73066..e5efc3046d0a3952fb40ddf9d830fb11e4f02008 100644 --- a/www/conservancy/apps/blog/urls.py +++ b/www/conservancy/apps/blog/urls.py @@ -62,7 +62,7 @@ def all_authors(): 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