From 64f7dedf227a88bac522cb34c6a99982b3d65321 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sat, 11 Feb 2017 12:55:19 +0100 Subject: Imports des modules pour ExtractWeek --- db.py | 4 ++-- models.py | 2 +- 2 files changed, 3 insertions(+), 3 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" diff --git a/models.py b/models.py index 6d395e0..1723536 100644 --- a/models.py +++ b/models.py @@ -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 -- cgit v1.2.1