On Sunday 07 February 2010 01:01:22 jimgardener wrote: > def get_absolute_url(self): > return ('myapp_entry_detail',[self.id]) >
Try this @models.permalink def get_abosulte_url(self): return ("myapp_entry_detail", (), {'id': self.id}) --- @models.permalink is the decorator version of the get_absolute_url=... Then what you should be returning is the reverse() args, which is the viewname as a string, the *args and **kwargs -- you could do (self.id) instead of the kwargs, but if you do that it should look like: ("myapp_entry_detail", (self.id), {}) I prefer kwargs for readability. Mike -- Interestingly enough, since subroutine declarations can come anywhere, you wouldn't have to put BEGIN {} at the beginning, nor END {} at the end. Interesting, no? I wonder if Henry would like it. :-) --lwall
signature.asc
Description: This is a digitally signed message part.