Re: urls permalink error

2010-09-02 Thread Kev
Patricia wrote:

>
>
> Hi all!
>
> 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 :)
>

Hello Patricia,

You need to provide the stacktrace of the error that you are getting.

Kev

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



urls permalink error

2010-08-30 Thread Patricia


Hi all!

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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.