#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 -------------------------------------+------------------------------------- Changes (by Mariusz Felisiak):
* status: new => closed * resolution: => invalid Comment: I cannot reproduce your issue, when running `test`, `makemigrations`, or `migrate`, an error is raised in all cases: {{{ $ ./manage.py test Found 1 test(s). Creating test database for alias 'default'... Destroying test database for alias 'default'... SystemCheckError: System check identified some issues: ERRORS: test_one.DummyModel.dummy_field: (fields.E120) CharFields must define a 'max_length' attribute. System check identified 1 issue (0 silenced). }}} -- Ticket URL: <https://code.djangoproject.com/ticket/34727#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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/010701897464ebdd-6073b72e-c788-4c78-a974-1310f75ec4b9-000000%40eu-central-1.amazonses.com.