aboutsummaryrefslogtreecommitdiff
path: root/db.py
diff options
context:
space:
mode:
authorAlban Gruin2017-02-11 12:55:19 +0100
committerAlban Gruin2017-02-11 12:55:19 +0100
commit64f7dedf227a88bac522cb34c6a99982b3d65321 (patch)
treeee5eee9b33a379f56ce173e63276dddb5115020d /db.py
parent7dc44ec77c6adcf7515f382d439d9a1820085d73 (diff)
Imports des modules pour ExtractWeek
Diffstat (limited to 'db.py')
-rw-r--r--db.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/db.py b/db.py
index 80a8c95..94df376 100644
--- a/db.py
+++ b/db.py
@@ -16,11 +16,11 @@
from django.db import connections
from django.db.models import Manager
-from django.db.models.query import QuerySet
+from django.db.models.functions import Extract
from django.db.models.sql.compiler import SQLCompiler
from django.db.models.sql.query import Query
from django.db.models.sql.where import WhereNode
-
+from django.db.models.query import QuerySet
class ExtractWeek(Extract):
lookup_name = "week"