django/django — pull request #380 by gavinwahl (2012-09-18 17:39:22+00:00)
Title: Fixed #18982 -- BaseTemporalField handles TypeError from strptime

When BaseTemporalField tries to clean a value with NUL bytes, strptime
raises a TypeError. Added an exception handler to make this a
ValidationError instead.

Ref https://code.djangoproject.com/ticket/18982