Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
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-Alsijil
Commits
43f115f5
Verified
Commit
43f115f5
authored
2 years ago
by
magicfelix
Browse files
Options
Downloads
Patches
Plain Diff
Add week documentation preference and carry over for CourseBook
parent
df744e42
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/alsijil/preferences.py
+10
-0
10 additions, 0 deletions
aleksis/apps/alsijil/preferences.py
aleksis/apps/alsijil/schema.py
+14
-0
14 additions, 0 deletions
aleksis/apps/alsijil/schema.py
with
24 additions
and
0 deletions
aleksis/apps/alsijil/preferences.py
+
10
−
0
View file @
43f115f5
...
...
@@ -80,6 +80,16 @@ class AllowCarryOverLessonDocumentationToCurrentWeek(BooleanPreference):
)
@site_preferences_registry.register
class
DocumentLessonTopicsByWeek
(
BooleanPreference
):
section
=
alsijil
name
=
"
document_lesson_topics_by_week
"
default
=
False
verbose_name
=
_
(
"
Document lesson topics per week instead of per lesson period
"
)
@site_preferences_registry.register
class
CarryOverPersonalNotesToNextPeriods
(
BooleanPreference
):
section
=
alsijil
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/alsijil/schema.py
+
14
−
0
View file @
43f115f5
...
...
@@ -5,6 +5,7 @@ from graphene_django import DjangoObjectType
from
aleksis.apps.chronos.models
import
Lesson
from
aleksis.core.models
import
Group
,
Person
from
aleksis.core.util.core_helpers
import
get_site_preferences
from
.models
import
(
Event
,
...
...
@@ -112,6 +113,19 @@ class LessonDocumentationMutation(graphene.Mutation):
lesson_documentation
.
save
()
if
(
get_site_preferences
()[
"
alsijil__document_lesson_topics_by_week
"
]
and
(
lesson_documentation
.
topic
or
lesson_documentation
.
homework
or
lesson_documentation
.
group_note
)
and
lesson_documentation
.
lesson_period
):
lesson_documentation
.
carry_over_data
(
LessonPeriod
.
objects
.
filter
(
lesson
=
lesson_documentation
.
lesson_period
.
lesson
)
)
return
LessonDocumentationMutation
(
lesson_documentation
=
lesson_documentation
)
...
...
This diff is collapsed.
Click to expand it.
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