diff options
author | Alban Gruin | 2017-01-27 21:18:14 +0100 |
---|---|---|
committer | Alban Gruin | 2017-01-27 21:18:14 +0100 |
commit | 70869e67c13e463c03dd6e6a618604de7f85e2d8 (patch) | |
tree | 4737b962def97e9af895f27edb3f6e2ede74b829 | |
parent | 033e1e78b2038e5d9dfca8960a939a0bb3f1308e (diff) |
Revert "Ajout d'un extracteur de semaine pour les DateTimeField."
This reverts commit 46e4a2d58503dd7c97056a4e543edcbc4e4ca353.
-rw-r--r-- | models.py | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -1,17 +1,11 @@ from django.db import models from django.db.models import Q -from django.db.models.functions import Extract from django.utils.text import slugify import hashlib import os -@models.DateTimeField.register_lookup -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") |