I have a page with some years. I want to click over the year, for
instance 2000, to see all the information.
I've build some permalinks in other pages to built the URL, now I
wanted to do the same thing, but the field I wanted to connect is not
the year, is the date.
@permalink
def get_absolute_url(self):
return('year', [str(self.date.year)])
But this give me a error, I suppose I can't make a query inside
permalink.
Anyone has any idea how to solve this?
Thanks :)
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment