#23639: Doc error in RegexValidator.regex
-------------------------------+------------------------------------
     Reporter:  claudep        |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Documentation  |                  Version:  master
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  1              |                    UI/UX:  0
-------------------------------+------------------------------------
Changes (by bmispelon):

 * easy:  0 => 1
 * stage:  Unreviewed => Accepted


Comment:

 Hi,

 You're right (and I also find this sentence really hard to parse, but
 maybe that's just me):

 {{{#!python
 >>> RegexValidator(regex='[a-z]')('1')
 Traceback (most recent call last):
   File "<console>", line 1, in <module>
   File "/home/tisba/Programming/testbed/boogz/django/core/validators.py",
 line 51, in __call__
     raise ValidationError(self.message, code=self.code)
 django.core.exceptions.ValidationError: ['Enter a valid value.']
 >>> RegexValidator(regex='[a-z]', inverse_match=True)('1')

 }}}

 I wouldn't be opposed to a rewrite of this paragraph since I find it quite
 confusing.

--
Ticket URL: <https://code.djangoproject.com/ticket/23639#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.efa071ceecd782ea0604a22a2420bfae%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to