From ac0cf97cb46a07f8f0bf50bac27db4ba2903a8ec Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 10 Nov 2016 10:15:56 -0500 Subject: [PATCH] Removed redundant DateTimeField.register_lookup()s. DateTimeField inherits these lookups from DateField. --- django/db/models/functions/datetime.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/django/db/models/functions/datetime.py b/django/db/models/functions/datetime.py index 6294bc3b94..341c53e162 100644 --- a/django/db/models/functions/datetime.py +++ b/django/db/models/functions/datetime.py @@ -117,10 +117,6 @@ TimeField.register_lookup(ExtractHour) TimeField.register_lookup(ExtractMinute) TimeField.register_lookup(ExtractSecond) -DateTimeField.register_lookup(ExtractYear) -DateTimeField.register_lookup(ExtractMonth) -DateTimeField.register_lookup(ExtractDay) -DateTimeField.register_lookup(ExtractWeekDay) DateTimeField.register_lookup(ExtractHour) DateTimeField.register_lookup(ExtractMinute) DateTimeField.register_lookup(ExtractSecond)