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

Properly handle LessonEvents without subject

parent 19e2816e
No related branches found
No related tags found
1 merge request!310Resolve "Implement Vue substitution frontend"
Pipeline #172369 failed
...@@ -1424,7 +1424,7 @@ class LessonEvent(CalendarEvent): ...@@ -1424,7 +1424,7 @@ class LessonEvent(CalendarEvent):
@property @property
def subject_name_with_amends(self: LessonEvent) -> str: def subject_name_with_amends(self: LessonEvent) -> str:
my_subject = self.subject.name my_subject = self.subject.name if self.subject else ""
amended_subject = self.real_amends.subject.name if self.amends else "" amended_subject = self.real_amends.subject.name if self.amends else ""
if my_subject and amended_subject: if my_subject and amended_subject:
......
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