Changes between Initial Version and Version 1 of Ticket #26324


Ignore:
Timestamp:
Mar 4, 2016, 7:49:50 AM (9 years ago)
Author:
chausner
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26324 – Description

    initial v1  
    77Foo.objects.create(bar=timedelta(seconds=3.05))
    88
    9 print str(Foo.objects.all()[0].length) # 'None'
    10 print str(Foo.objects.all()[1].length) # '3.05'
     9print str(Foo.objects.all()[0].bar) # 'None'
     10print str(Foo.objects.all()[1].bar) # '3.05'
    1111}}}
    1212I 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.
Back to Top