Intertwined problems with Django Time fields force hacks to edit/display time
6 views
Skip to first unread message
Duke Dougal
unread,
Jan 22, 2019, 5:44:56 PM1/22/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I hope this is etiquette but I'm going to refer to the StackOverflow post for this problem because there's so much related information and because the formatting make it practical to understand.
In essence, the problem is that Django seems to change the data type of the time field which results in the seconds being dropped, which cascades onto a second problem which is that the template time filter tag returns None when its input does not have seconds.