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
4c6b4e38
Verified
Commit
4c6b4e38
authored
5 years ago
by
Tom Teichler
Browse files
Options
Downloads
Patches
Plain Diff
Remove superflous schoolapps stuff.
parent
642c60d6
No related branches found
No related tags found
1 merge request
!31
Biscuit merge. Closes #53.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/chronos/settings.py
+0
-23
0 additions, 23 deletions
aleksis/apps/chronos/settings.py
with
0 additions
and
23 deletions
aleksis/apps/chronos/settings.py
deleted
100644 → 0
+
0
−
23
View file @
642c60d6
import
dbsettings
from
django
import
forms
from
untisconnect.api_helper
import
get_terms
,
get_school_years
choices_school_years
=
[]
school_years
=
get_school_years
()
for
year
in
school_years
:
choices_school_years
.
append
((
year
.
id
,
year
.
name
))
choices_terms
=
[]
terms
=
get_terms
()
for
term
in
terms
:
choices_terms
.
append
((
term
.
id
,
"
{}, #{}: {}
"
.
format
(
term
.
school_year_id
,
term
.
id
,
term
.
name
)))
class
UNTISSettings
(
dbsettings
.
Group
):
school_year
=
dbsettings
.
PositiveIntegerValue
(
"
Schuljahr
"
,
widget
=
forms
.
Select
,
choices
=
choices_school_years
)
term
=
dbsettings
.
IntegerValue
(
"
Periode
"
,
widget
=
forms
.
Select
,
choices
=
choices_terms
,
help_text
=
"
Bitte wähle oberhalb auch das zur Periode passende Schuljahr aus.
"
)
untis_settings
=
UNTISSettings
(
"
UNTIS
"
)
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