From 0e93a60f494d3566fa41f86ea7174091a5118cc8 Mon Sep 17 00:00:00 2001 From: Maciej Tronowski Date: Thu, 2 Jul 2015 11:45:01 +0200 Subject: [PATCH] fix submitting template with saved walltime --- qcg/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcg/fields.py b/qcg/fields.py index 73b46f4..ef5170a 100644 --- a/qcg/fields.py +++ b/qcg/fields.py @@ -9,7 +9,7 @@ class TimeRangeWidget(forms.MultiWidget): if not value: return [None, None] - seconds = value.total_seconds() + seconds = int(value.total_seconds()) if seconds % 60 != 0: return [seconds, TimeRangeField.SECONDS] -- 1.7.9.5