Unify API of lesson period with event and extra lesson by adding properties for group names
Compare changes
+ 10
− 0
@@ -473,6 +473,16 @@ class LessonPeriod(WeekAnnotationMixin, TeacherPropertiesMixin, ExtensibleModel)
To be able to use the same API on the models lesson period, event and extra lesson which are often used in a common context (e. g. in Alsijil), I added the properties group_names
and group_short_names
to the lesson period model. They will use the connected lesson object for getting the real data.