--
Ticket URL: <https://code.djangoproject.com/ticket/24782>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/24782#comment:1>
* owner: nobody => delgiudices
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/24782#comment:2>
* needs_docs: 0 => 1
* has_patch: 0 => 1
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24782#comment:3>
* needs_better_patch: 0 => 1
* needs_tests: 1 => 0
* easy: 1 => 0
* needs_docs: 1 => 0
Comment:
See [https://github.com/django/django/pull/4645#issuecomment-107254019
comment from Marc on the pull request] for methods to be added.
--
Ticket URL: <https://code.djangoproject.com/ticket/24782#comment:4>
* owner: delgiudices => jvzammit
--
Ticket URL: <https://code.djangoproject.com/ticket/24782#comment:5>
* needs_better_patch: 1 => 0
Comment:
I have opened a new PR: https://github.com/django/django/pull/5595
--
Ticket URL: <https://code.djangoproject.com/ticket/24782#comment:6>
* needs_better_patch: 0 => 1
Comment:
Left comments for improvement.
--
Ticket URL: <https://code.djangoproject.com/ticket/24782#comment:7>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24782#comment:8>
* needs_better_patch: 0 => 1
Comment:
There are comments on [https://github.com/django/django/pull/6046 the new
pull request] for improvement.
--
Ticket URL: <https://code.djangoproject.com/ticket/24782#comment:9>
* owner: Joseph Victor Zammit => David Smith
--
Ticket URL: <https://code.djangoproject.com/ticket/24782#comment:10>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24782#comment:11>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24782#comment:12>
* status: assigned => closed
* resolution: => wontfix
* stage: Accepted => Unreviewed
Comment:
After detailed analysis provided by David we decided to close this as
`wontfix`:
- expecting a user to pass in all the requirements to pass the
`ValidationError` equality test is too hard to be useful,
- the currently proposed `code` method isn't that robust, there may be too
many caveats for it to be useful, e.g. custom user errors generated where
passwords don't match are unlikely to have a code passed into the
`ValidationError`,
- if it's just pass/fail that isn't much benefit from
`self.assertIs(form.is_valid(), True)`,
In the end, this isn't worth adding extra functions.
--
Ticket URL: <https://code.djangoproject.com/ticket/24782#comment:13>