Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Chronos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Chronos
Merge requests
!358
Fix for recurrence optimizations
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix for recurrence optimizations
fix/recurrence-manager
into
master
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Jonathan Weth
requested to merge
fix/recurrence-manager
into
master
8 months ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
7f207764
1 commit,
8 months ago
2 files
+
12
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
aleksis/apps/chronos/managers.py
+
2
−
2
Options
@@ -9,13 +9,13 @@ from django.db.models.fields import DateField
from
django.db.models.functions
import
Concat
from
calendarweek
import
CalendarWeek
from
polymorphic.managers
import
PolymorphicQuerySet
from
aleksis.apps.chronos.util.date
import
week_weekday_from_date
,
week_weekday_to_date
from
aleksis.apps.cursus.models
import
Course
from
aleksis.core.managers
import
(
AlekSISBaseManagerWithoutMigrations
,
DateRangeQuerySetMixin
,
RecurrencePolymorphicQuerySet
,
SchoolTermRelatedQuerySet
,
)
from
aleksis.core.models
import
Group
,
Person
,
Room
@@ -866,7 +866,7 @@ class RoomPropertiesMixin:
return
sep
.
join
([
room
.
short_name
for
room
in
self
.
get_rooms
()])
class
LessonEventQuerySet
(
PolymorphicQuerySet
):
class
LessonEventQuerySet
(
Recurrence
PolymorphicQuerySet
):
"""
Queryset with special query methods for lesson events.
"""
def
for_teacher
(
self
,
teacher
:
Union
[
int
,
Person
])
->
"
LessonEventQuerySet
"
:
Loading