Skip to content

Commit

Permalink
modified attendence query so only untaken attendences are deleted whe…
Browse files Browse the repository at this point in the history
…n students are dropped
  • Loading branch information
Veriny committed Sep 19, 2023
1 parent 0af4cb6 commit b8f8f6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions csm_web/scheduler/views/student.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def drop(self, request, pk=None):
Q(
sectionOccurrence__date__gte=now.date(),
sectionOccurrence__section=student.section,
presence = ""
)
).delete()
logger.info(
Expand Down

0 comments on commit b8f8f6e

Please sign in to comment.