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