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

Fix lesson event graphene type

parent 6f974c30
No related branches found
No related tags found
1 merge request!329Introduce substitution to do list
Pipeline #193192 failed
......@@ -84,7 +84,7 @@ class LessonEventType(DjangoObjectType):
if not str(root.pk).startswith("DUMMY") and hasattr(root, "groups"):
return root.groups
elif root.amends:
root.amends.groups
return root.amends.groups
return []
@staticmethod
......@@ -92,7 +92,7 @@ class LessonEventType(DjangoObjectType):
if not str(root.pk).startswith("DUMMY") and hasattr(root, "rooms"):
return root.rooms
elif root.amends:
root.amends.rooms
return root.amends.rooms
return []
......
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