Skip to content
Snippets Groups Projects
Verified Commit ed30add9 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Make LessonPeriod extensible.

parent d9a3e66d
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ from django.db.models import Q ...@@ -10,7 +10,7 @@ from django.db.models import Q
from django.http.request import QueryDict from django.http.request import QueryDict
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from biscuit.core.mixins import SchoolRelated from biscuit.core.mixins import ExtensibleModel, SchoolRelated
from biscuit.core.models import Group, Person from biscuit.core.models import Group, Person
from .util import CalendarWeek, week_weekday_from_date from .util import CalendarWeek, week_weekday_from_date
...@@ -274,7 +274,7 @@ class LessonSubstitution(SchoolRelated): ...@@ -274,7 +274,7 @@ class LessonSubstitution(SchoolRelated):
] ]
class LessonPeriod(SchoolRelated): class LessonPeriod(SchoolRelated, ExtensibleModel):
objects = LessonPeriodManager.from_queryset(LessonPeriodQuerySet)() objects = LessonPeriodManager.from_queryset(LessonPeriodQuerySet)()
lesson = models.ForeignKey('Lesson', models.CASCADE, related_name='lesson_periods') lesson = models.ForeignKey('Lesson', models.CASCADE, related_name='lesson_periods')
......
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