Skip to content
Snippets Groups Projects
Commit 72af4d7f authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Revise comment

parent c55288a2
No related branches found
No related tags found
1 merge request!329Introduce substitution to do list
Pipeline #193183 failed
......@@ -163,8 +163,8 @@ class SubstitutionBatchCreateOrUpdateMutation(graphene.Mutation):
def create_or_update(cls, info, substitution):
_id = substitution.id
# Sadly, we can't use the update_or_create method since create_defaults
# is only introduced in Django 5.0
# Sadly, we can't use the update_or_create method since we can't check
# different permissions depending on the operation with it.
if _id.startswith("DUMMY"):
dummy, amended_lesson_event_id, datetime_start_iso, datetime_end_iso = _id.split(";")
amended_lesson_event = LessonEvent.objects.get(id=amended_lesson_event_id)
......
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