Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
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-Alsijil
Merge requests
!48
Review use of Materialize
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Review use of Materialize
fix/design
into
master
Overview
0
Commits
25
Pipelines
6
Changes
1
Merged
Jonathan Weth
requested to merge
fix/design
into
master
4 years ago
Overview
0
Commits
25
Pipelines
6
Changes
1
Expand
Close
#61 (closed)
Edited
4 years ago
by
Jonathan Weth
0
0
Merge request reports
Viewing commit
24fcf2c2
Show latest version
1 file
+
5
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
24fcf2c2
Clear fixme, use SchoolYear model
· 24fcf2c2
Julian
authored
4 years ago
aleksis/apps/alsijil/views.py
+
5
−
6
Options
@@ -14,7 +14,7 @@ from calendarweek import CalendarWeek
from
django_tables2
import
RequestConfig
from
aleksis.apps.chronos.models
import
LessonPeriod
from
aleksis.core.models
import
Group
,
Person
from
aleksis.core.models
import
Group
,
Person
,
SchoolYear
from
aleksis.core.util
import
messages
from
.forms
import
(
@@ -238,11 +238,10 @@ def full_register_group(request: HttpRequest, id_: int) -> HttpResponse:
.
prefetch_related
(
"
documentations
"
,
"
personal_notes
"
)
)
#FIXME SchoolTerm missing in core
# weeks = CalendarWeek.weeks_within(
# SchoolTerm.objects.first().current_term.date_start,
# SchoolTerm.objects.first().current_term.date_end,
# )
weeks
=
CalendarWeek
.
weeks_within
(
SchoolYear
.
current
.
date_start
,
SchoolYear
.
current
.
date_end
,
)
periods_by_day
=
{}
for
lesson_period
in
lesson_periods
:
Loading