Skip to content
Snippets Groups Projects
Verified Commit 995f1ba8 authored by magicfelix's avatar magicfelix
Browse files

Fix deleting topic, homework or groupNote

parent d72351e4
No related branches found
No related tags found
No related merge requests found
...@@ -96,11 +96,11 @@ class LessonDocumentationMutation(graphene.Mutation): ...@@ -96,11 +96,11 @@ class LessonDocumentationMutation(graphene.Mutation):
extra_lesson=extra_lesson extra_lesson=extra_lesson
) )
if topic: if topic is not None:
lesson_documentation.topic = topic lesson_documentation.topic = topic
if homework: if homework is not None:
lesson_documentation.homework = homework lesson_documentation.homework = homework
if group_note: if group_note is not None:
lesson_documentation.group_note = group_note lesson_documentation.group_note = group_note
lesson_documentation.save() lesson_documentation.save()
......
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