I'm implementing the get_absolute_url method on one of my models.
@models.permalink
def get_absolute_url(self):
return ('viewProject', (), {'projectSlug' : self.slug})
My url has:
url(r'^(?P<projectSlug>[-\w]+)/$', 'assetlibrary.views.viewProject',
name='viewProject'),
However, in the admin page for that instance, the View on Site link points
to:
../../../r/14/1/
which is not very useful.
I was following the documentation here:
https://docs.djangoproject.com/en/1.4/ref/models/instances/#get-absolute-url
and nothing more is listed than what I just did. Am I missing another step?
Thank you,
Chad
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.