django-extensions/django-extensions — pull request #537 by Shanto (2014-08-17 21:50:49+00:00)
Title: Fix: Issue #536

Issue #536: Following error condition triggers when there is None value for any DateField or DateTimeField. I.e. value == None

File "-/django_extensions/management/commands/dumpscript.py", line 718, in get_attribute_value
return "dateutil.parser.parse(\"%s\")" % value.isoformat()
AttributeError: 'NoneType' object has no attribute 'isoformat'

Fix: The proposed fix is to check the value against None before actually calling isoformat on the value.