diff options
author | Alban Gruin | 2017-02-11 12:55:19 +0100 |
---|---|---|
committer | Alban Gruin | 2017-02-11 12:55:19 +0100 |
commit | 64f7dedf227a88bac522cb34c6a99982b3d65321 (patch) | |
tree | ee5eee9b33a379f56ce173e63276dddb5115020d | |
parent | 7dc44ec77c6adcf7515f382d439d9a1820085d73 (diff) |
Imports des modules pour ExtractWeek
-rw-r--r-- | db.py | 4 | ||||
-rw-r--r-- | models.py | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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" @@ -17,7 +17,7 @@ from django.db import connection, models from django.db.models import Q from django.db.models.expressions import RawSQL -from django.db.models.functions import Extract, ExtractYear +from django.db.models.functions import ExtractYear from django.utils.text import slugify from .db import ExtractWeek, GroupedManager |