#8559 closed (fixed)
new comment.get_absolute_url returns ''
Reported by: | TrevorFSmith | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | UI/UX: |
Description
Just upgraded to the new comments system (sort of peaved that headlines went away, but hey) and {{ comment.get_absolute_url }} now returns . I can get comment.content_object.get_absolute_url with no problem.
Change History (3)
comment:1 by , 16 years ago
follow-up: 3 comment:2 by , 16 years ago
Component: | django.contrib.comments → Documentation |
---|---|
Triage Stage: | Unreviewed → Accepted |
That's because the shortcut view isn't installed; you'll need to make sure that django.views.defaults.shortcut
is installed somewhere for that to work. This should be documented better.
There's not much to be done to fix it generically, however. -- there's no comment detail view.
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Replying to jacob:
That's because the shortcut view isn't installed; you'll need to make sure that
django.views.defaults.shortcut
is installed somewhere for that to work. This should be documented better.
There's not much to be done to fix it generically, however. -- there's no comment detail view.
Jacob, looks like there will be no necessity to document it. Malcolm has fixed it in [8614]. Thanks to Malcolm for the patch and TrevorFSmith and others (on #django-dev and IRC) for reporting this issue.
More info: when I call comment.get_absolute_url() from view.py I receive an exception: