#35483: ModelMultipleChoiceField with CharField key throws ValueError if data contains NUL (0x00) characters -------------------------------------+------------------------------------- Reporter: Jennifer Richards | Owner: lotvall Type: Bug | Status: closed Component: Forms | Version: 4.2 Severity: Normal | Resolution: fixed Keywords: | Triage Stage: Ready for ModelMultipleChoiceField null nul | checkin Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Comment (by Sarah Boyce <42296566+sarahboyce@…>):
In [changeset:"b8983dcf57b46a4391891cecdfc856c9c1c8d363" b8983dc]: {{{#!CommitTicketReference repository="" revision="b8983dcf57b46a4391891cecdfc856c9c1c8d363" [5.1.x] Fixed #35483 -- Added NUL (0x00) character validation to ModelChoiceFields. Applied the ProhibitNullCharactersValidator to ModelChoiceField and ModelMultipleChoiceField. Co-authored-by: Viktor Paripás <viktor.pari...@gmail.com> Co-authored-by: Vasyl Dizhak <va...@dizhak.com> Co-authored-by: Arthur Vasconcelos <vasconcelos.art...@gmail.com> Backport of 38ad710aba885ad26944ff5708ce1a02a446d2d3 from main. }}} -- Ticket URL: <https://code.djangoproject.com/ticket/35483#comment:7> 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/0107019025b8df89-d125cb23-4930-4915-8397-41061381c87b-000000%40eu-central-1.amazonses.com.