Re: permalink decorator is not working (at least for me)

2007-02-26 Thread Lawrence Oluyede
> I have a feeling somebody pointed this out in a ticket just recently, > too. We're treating something as a sequence when we shouldn't > necessarily be. I'll track it down this evening and either fix the docs > or the code. > > As an intermediate fix, pass in [str(self.id)] or (str(self.id),) and

Re: permalink decorator is not working (at least for me)

2007-02-25 Thread Malcolm Tredinnick
On Sun, 2007-02-25 at 20:55 +0100, Lawrence Oluyede wrote: > I tried to use the new permalink decorator to decouple the model from > the urlconf structure but it doesn't work correctly. Here's an > example: > > def get_absolute_url(self): > return "/foo/%d" % self.id > > changed to:

permalink decorator is not working (at least for me)

2007-02-25 Thread Lawrence Oluyede
I tried to use the new permalink decorator to decouple the model from the urlconf structure but it doesn't work correctly. Here's an example: def get_absolute_url(self): return "/foo/%d" % self.id changed to: def get_absolute_url(self): return ('path.of.the.correct.view'