Your get_absolute_url method is in the wrong format:::
it should be:
@models.permalink
def get_absolute_url(self):
return ("view_name", #view name
)
On Tuesday, July 24, 2012 1:58:26 PM UTC-4, Jeff Green wrote:
>
> I am stuck in trying to figure out why the get_absolute_url call
your get absolute url method is in the wrong format::
if should be.
@models.permalink
def get_absolute_url(self):
return ("view_name", #view name,
(), #tuble of positional args
{}, #dict of name kwargs
)
In your case, this is what the method should look like:
2 matches
Mail list logo