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
Commits
68ad7d31
Verified
Commit
68ad7d31
authored
4 years ago
by
Julian
Committed by
Jonathan Weth
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Include said table in the view
parent
9c8d30a5
No related branches found
No related tags found
1 merge request
!111
Resolve "[Person overview] Implement multiple selection for marking absences as excused or for deleting"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/alsijil/views.py
+5
-0
5 additions, 0 deletions
aleksis/apps/alsijil/views.py
with
5 additions
and
0 deletions
aleksis/apps/alsijil/views.py
+
5
−
0
View file @
68ad7d31
...
...
@@ -63,6 +63,9 @@ from .util.alsijil_helpers import (
get_timetable_instance_by_pk
,
register_objects_sorter
,
)
from
.models
import
ExcuseType
,
ExtraMark
,
LessonDocumentation
,
PersonalNote
from
.tables
import
ExcuseTypeTable
,
ExtraMarkTable
,
PersonalNoteTable
from
.util.alsijil_helpers
import
get_lesson_period_by_pk
,
get_timetable_instance_by_pk
@permission_required
(
"
alsijil.view_register_object
"
,
fn
=
get_register_object_by_pk
)
# FIXME
...
...
@@ -869,6 +872,8 @@ def overview_person(request: HttpRequest, id_: Optional[int] = None) -> HttpResp
context
[
"
personal_notes
"
]
=
personal_notes
context
[
"
excuse_types
"
]
=
ExcuseType
.
objects
.
all
()
context
[
"
personal_notes_table
"
]
=
PersonalNoteTable
(
personal_notes
)
extra_marks
=
ExtraMark
.
objects
.
all
()
excuse_types
=
ExcuseType
.
objects
.
all
()
if
request
.
user
.
has_perm
(
"
alsijil.view_person_statistics_personalnote
"
,
person
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment