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
!45
Improve handling of child/parent groups
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Improve handling of child/parent groups
bugfix/handling-child-parent-groups
into
master
Overview
2
Commits
4
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Merged
Jonathan Weth
requested to merge
bugfix/handling-child-parent-groups
into
master
4 years ago
Overview
2
Commits
4
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Viewing commit
f015c8a2
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
f015c8a2
Fix query in filter_group
· f015c8a2
Jonathan Weth
authored
4 years ago
aleksis/apps/chronos/models.py
+
1
−
1
Options
@@ -130,7 +130,7 @@ class LessonDataQuerySet(models.QuerySet):
if
isinstance
(
group
,
int
):
group
=
Group
.
objects
.
get
(
pk
=
group
)
if
group
.
parent_groups
:
if
group
.
parent_groups
.
all
()
:
# Prevent to show lessons multiple times
return
self
.
filter
(
Q
(
**
{
self
.
_period_path
+
"
lesson__groups
"
:
group
}))
else
:
Loading