I'm taking the time to open this ticket because this wasted me a lot of
time. I had a typo in my `pattern_name`, which resulted in a 410 rather
than an exception (as one would expect).
The documentation only says a 410 will be returned if "the resulting
location is empty, or the url argument is None", but doesn't mention that
it can mask errors.
This design should be reconsidered (per the zen of python, errors should
never pass silently). Or at the very least, documented.
--
Ticket URL: <https://code.djangoproject.com/ticket/26911>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
I don't see a rationale for that decision on the original ticket: #15273.
You'll need to write to the DevelopersMailingList to see if there's
consensus to change it, otherwise updating the documentation will suffice.
--
Ticket URL: <https://code.djangoproject.com/ticket/26911#comment:1>
* cc: grzegorz.tezycki@… (added)
* owner: nobody => K2
* status: new => assigned
Comment:
Catching NoReverseMatch will be removed
--
Ticket URL: <https://code.djangoproject.com/ticket/26911#comment:2>
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/8125 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/26911#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"fede65260aaf3a5100d1c07de771707dd50b1f35" fede6526]:
{{{
#!CommitTicketReference repository=""
revision="fede65260aaf3a5100d1c07de771707dd50b1f35"
Fixed #26911 -- Removed NoReverseMatch silencing in RedirectView.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26911#comment:4>