> 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
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:
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'
3 matches
Mail list logo