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):