Skip to content
Snippets Groups Projects
Commit d4064ae1 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch 'show-events-current-changes-substitutions-table' into 'master'

Fix substitutions for supervisions

See merge request !396
parents 2fb590f3 acced5e0
No related branches found
No related tags found
1 merge request!396Fix substitutions for supervisions
Pipeline #194137 passed
......@@ -557,6 +557,7 @@ class SupervisionEvent(LessonEvent):
not_amended = params.get("not_amended", False)
not_amending = params.get("not_amending", False)
amending = params.get("amending", False)
current_changes = params.get("current_changes", False)
if not_amended:
q = q & SupervisionEventQuerySet.not_amended_q()
......@@ -567,6 +568,9 @@ class SupervisionEvent(LessonEvent):
if amending:
q = q & SupervisionEventQuerySet.amending_q()
if current_changes:
q = q & SupervisionEventQuerySet.current_changes_q()
if type_ and obj_id:
if request and not (
(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment