Hi all!
I have a page with some years. I want to click over the year, for instance 2000, to see all the information.
What I have in urls is this:
url(r'^browse/time/(\d{4})/$', 'TBDBsite.tb.views.data_time', name="yr"),
In models:
@permalink
def get_absolute_url(self):
return('year', [str(self.date.year)])
And in the template:
{% for y in yr %}
<li><a href="{{ y.get_absolute_url }}"><p> {{ y }}</p></a></li>
{% endfor %}
When I print {{ yr }} I see a list with the years but the url doesn't work.
Anyone has any idea how to solve this?
Thanks :)