Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Chronos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Chronos
Commits
ed30add9
Verified
Commit
ed30add9
authored
5 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Make LessonPeriod extensible.
parent
d9a3e66d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
biscuit/apps/chronos/models.py
+2
-2
2 additions, 2 deletions
biscuit/apps/chronos/models.py
with
2 additions
and
2 deletions
biscuit/apps/chronos/models.py
+
2
−
2
View file @
ed30add9
...
@@ -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
'
)
...
...
This diff is collapsed.
Click to expand it.
Nik | Klampfradler
@nik
mentioned in commit
e5365576
·
5 years ago
mentioned in commit
e5365576
mentioned in commit e53655768367925fe4b1635f567f857b5ebfa879
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment