#34244: allow overriding error params in BaseValidator
-------------------------------------+-------------------------------------
Reporter: Mateusz | Owner: nobody
Kurowski |
Type: New | Status: new
feature |
Component: Core | Version: dev
(Other) | Keywords:
Severity: Normal | validators,BaseValidator,params,error,override
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hello. I wonder if that is a valid change i suggest: Right now params are
hardcoded, see:
https://github.com/django/django/blob/8cf3831822b708270f38fabb630bbdfdfbb41be1/django/core/validators.py#L367
It would be nice to call `self.get_error_params` - we could override this
method.
What do you think?
--
Ticket URL: <https://code.djangoproject.com/ticket/34244>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.