Commit c21d1a7f55a516c376afc0919dfeffdd78bff3ec

Authored by Rohan Rangray
1 parent 63502bd39a
Exists in master

Fixed incorrect property name in PostgresIntervalDay

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

flashcards/models.py View file @ c21d1a7
... ... @@ -497,7 +497,7 @@
497 497  
498 498 class PostgresIntervalDay(Func):
499 499 function = 'EXTRACT'
500   - template_postgres = "(((%(function)s(EPOCH FROM INTERVAL %(expressions)s) / 60) / 60) / 24)::integer"
  500 + template = "(((%(function)s(EPOCH FROM INTERVAL %(expressions)s) / 60) / 60) / 24)::integer"
501 501 arg_joiner = ' - '
502 502  
503 503 def __init__(self, *expression, **extra):