diff options
Diffstat (limited to 'db.py')
-rw-r--r-- | db.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -22,6 +22,10 @@ from django.db.models.sql.query import Query from django.db.models.sql.where import WhereNode +class ExtractWeek(Extract): + lookup_name = "week" + + class GroupedCompiler(SQLCompiler): def get_group_by(self, select, order_by): result = super(GroupedCompiler, self).get_group_by(select, order_by) |