Django has recently merged a fix for issue https://code.djangoproject.com/ticket/28201 which adds a validator that prohibits null characters in CharField form fields. One of the reasons behind this is that some DB backends, such as Posgres/psycopg under Python 3 raises an exception when strings containing null characters are either used in a query or inserted into the database. We recently ran into the same issue in one of our DRF views, which made me thinking that we perhaps should add a similar validator to DRF serializers as well, unless Django form field validators somehow run implicitly by DRF.
Any thoughts on this? -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
