How to put timedelta in django model?

后端 未结 7 1359
情歌与酒
情歌与酒 2020-12-09 14:29

With inspectdb I was able to get a \"interval\" field from postgres into django. In Django, it was a TextField. The object that I retrieved was indeed a timedelta object!

相关标签:
7条回答
  • 2020-12-09 15:30

    https://bitbucket.org/schinckel/django-timedelta-field/src

    0 讨论(0)
提交回复
热议问题