#34403: max_length argument for the CharField is not respected through shell
-----------------------------------------+------------------------
               Reporter:  ittach1        |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Uncategorized  |        Version:  4.1
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 In this example,

 class country(models.Model):
     name = models.CharField(max_length=80)
     code = models.CharField(max_length=3)

 The code field has a maximum length of 3, but through the shell, the
 length seems to be exceeded without throwing a validation error. But from
 the Django Admin portal, the character length appears to work as expected.

 I've taken screenshots to show the existence of the bug.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34403>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070186cd28accb-8450f332-548b-4dd8-9bed-ce2697b12463-000000%40eu-central-1.amazonses.com.

Reply via email to