Skip to content
Snippets Groups Projects

Resolve "Django 3.2 database improvements"

Merged Jonathan Weth requested to merge 125-django-3-2-database-improvements into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -215,7 +215,7 @@ class WeekQuerySetMixin:
)
def alias_week(self, week: Union[CalendarWeek]):
"""Add an alias to all lessons in the QuerySet with the number of the provided calendar week."""
"""Add an alias to all lessons in the QuerySet with the number of the calendar week."""
return self.alias(
_week=models.Value(week.week, models.IntegerField()),
_year=models.Value(week.year, models.IntegerField()),
Loading