#34727: Error in CharField with TextChoices and missing max_length parameter
-------------------------------------+-------------------------------------
     Reporter:  osamahasanone        |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Testing framework    |                  Version:  4.2
     Severity:  Normal               |               Resolution:  invalid
     Keywords:  test, sqlite,        |             Triage Stage:
  CharField, max_length,choices      |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Tim Graham):

 Mariusz, did you perhaps remove `max_length` from a model without also
 updating the migration? I don't see how valid SQL could be producd with
 `None` interpolated as a
 
[https://github.com/django/django/blob/addbc90049083f1d5f7ac138ed00111b71a75233/django/db/backends/sqlite3/base.py#L64
 max_length].

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34727#comment:3>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018974739275-761e98ff-dcbf-4e73-b8a2-82a8d11e3c31-000000%40eu-central-1.amazonses.com.

Reply via email to