Open GoogleCodeExporter opened 8 years ago
fixed it
http://djangosnippets.org/snippets/1060/ had a comment which kinda fixes it.
not sure of how it affects the app in a complete way. it works for now
def to_python(self, value):
if (value is None) or isinstance(value, datetime.timedelta):
return value
if value == '':
value = 0
assert isinstance(value, int), (value, type(value))
return datetime.timedelta(seconds=value)
Original comment by v.iy...@gmail.com
on 29 Apr 2011 at 3:58
patched version available here https://bitbucket.org/viyyer/django-video
Original comment by v.iy...@gmail.com
on 2 May 2011 at 4:18
Original issue reported on code.google.com by
v.iy...@gmail.com
on 28 Apr 2011 at 7:46