From c21d1a7f55a516c376afc0919dfeffdd78bff3ec Mon Sep 17 00:00:00 2001 From: Rohan Rangray Date: Sat, 30 May 2015 00:41:20 -0700 Subject: [PATCH] Fixed incorrect property name in PostgresIntervalDay --- flashcards/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flashcards/models.py b/flashcards/models.py index 995b626..964ccd8 100644 --- a/flashcards/models.py +++ b/flashcards/models.py @@ -497,7 +497,7 @@ class JulianDay(Func): class PostgresIntervalDay(Func): function = 'EXTRACT' - template_postgres = "(((%(function)s(EPOCH FROM INTERVAL %(expressions)s) / 60) / 60) / 24)::integer" + template = "(((%(function)s(EPOCH FROM INTERVAL %(expressions)s) / 60) / 60) / 24)::integer" arg_joiner = ' - ' def __init__(self, *expression, **extra): -- 1.9.1