Opened 14 years ago
Closed 14 years ago
#14495 closed (fixed)
get_success_url raises ImproperlyConfigured with wrong message in some class based generic views' mixins
Reported by: | Honza Král | Owned by: | nobody |
---|---|---|---|
Component: | Generic views | Version: | dev |
Severity: | Keywords: | generic views get_absolute_url get_success_url success_url | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
For example FormMixin
and DeletionMixin
complain:
"No URL to redirect to. Either provide a url or define a get_absolute_url method on the Model."
but they don't actually check if the Model
has a get_absolute_url
method.
Change History (2)
comment:1 by , 14 years ago
Needs tests: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [14284]) Fixed #14495 -- DeletionMixin and FormMixin don't have an object to work with so they cannot redirect to get_absolute_url and shouldn't claim they do.