#29397: Username validation should be handled at the model level on object
creation.
-------------------------------+--------------------------------------
     Reporter:  Andrew Carl    |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  contrib.admin  |                  Version:  1.11
     Severity:  Normal         |               Resolution:  invalid
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by Claude Paroz):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 As I understand your description, your are surprised that model validation
 is not called at the `model.save()` stage. This is by design and you
 should call `full_clean()` in your code, as described in
 https://docs.djangoproject.com/en/2.0/ref/models/instances/#validating-
 objects.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29397#comment:2>
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/066.3bfe1bea8b5d019a5f02a2800b138111%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to