Changes between Initial Version and Version 1 of Ticket #26324
- Timestamp:
- Mar 4, 2016, 7:49:50 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26324 – Description
initial v1 7 7 Foo.objects.create(bar=timedelta(seconds=3.05)) 8 8 9 print str(Foo.objects.all()[0]. length) # 'None'10 print str(Foo.objects.all()[1]. length) # '3.05'9 print str(Foo.objects.all()[0].bar) # 'None' 10 print str(Foo.objects.all()[1].bar) # '3.05' 11 11 }}} 12 12 I can reproduce this bug with Django 1.8.5 and 1.9.3 using sqlite as database backend. It does not occur with MySQL, so it seems to be related to how sqlite stores bigints. It renders DurationField essentially useless with sqlite.