#35454: ArrayField with default throwing a ValidationError on full_clean -------------------------------------+------------------------------------- Reporter: hfroot | Owner: nobody Type: Uncategorized | Status: new Component: Database layer | Version: 5.0 (models, ORM) | Severity: Normal | Resolution: Keywords: full_clean, | Triage Stage: ArrayField, ValidationError | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Comment (by hfroot):
I fixed the issue by adding `blank=True` to the `ArrayField` definition. I see now in the docs For both string-based and non-string-based fields, you will also need to set blank=True if you wish to permit empty values in forms, as the null parameter only affects database storage (see blank). https://docs.djangoproject.com/en/5.0/ref/models/fields/#null Maybe the docs for `blank` and the mention of setting `default=list` in the `ArrayField` docs could be updated? -- Ticket URL: <https://code.djangoproject.com/ticket/35454#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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018f77bf00bc-ba157dfa-ede3-4359-b387-5486e116104b-000000%40eu-central-1.amazonses.com.