aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
authorAlban Gruin2017-02-11 12:34:20 +0100
committerAlban Gruin2017-02-11 12:34:20 +0100
commit7dc44ec77c6adcf7515f382d439d9a1820085d73 (patch)
treea703a4f97d51ce44a5f844cb2e3cbc49c9a4a7ff /models.py
parent3f03f5a058755e166ec69d992b012186434caa18 (diff)
Déplacement de ExtractWeek dans db.py
Diffstat (limited to 'models.py')
-rw-r--r--models.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/models.py b/models.py
index 0d3f2c0..6d395e0 100644
--- a/models.py
+++ b/models.py
@@ -20,16 +20,12 @@ from django.db.models.expressions import RawSQL
from django.db.models.functions import Extract, ExtractYear
from django.utils.text import slugify
-from .db import GroupedManager
+from .db import ExtractWeek, GroupedManager
import hashlib
import os
-class ExtractWeek(Extract):
- lookup_name = "week"
-
-
class Timetable(models.Model):
name = models.CharField(max_length=64, unique=True, verbose_name="nom")
url = models.URLField(max_length=255, unique=True, verbose_name="URL")