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

Fix deleting topic, homework or groupNote

parent 76a6db6b
No related branches found
No related tags found
1 merge request!284Draft: Redesign entering of lesson documentation
...@@ -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