Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Untis
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-Untis
Commits
8d446bf9
Verified
Commit
8d446bf9
authored
4 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Add missing extra fields for further import references
parent
f0842f64
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!26
Fix lint issues and reformat
,
!24
Resolve "Import school terms and validity ranges"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/untis/model_extensions.py
+13
-0
13 additions, 0 deletions
aleksis/apps/untis/model_extensions.py
with
13 additions
and
0 deletions
aleksis/apps/untis/model_extensions.py
+
13
−
0
View file @
8d446bf9
...
...
@@ -5,6 +5,10 @@ from jsonstore import CharField, IntegerField
from
aleksis.apps.chronos
import
models
as
chronos_models
from
aleksis.core
import
models
as
core_models
core_models
.
SchoolTerm
.
field
(
import_ref_untis
=
IntegerField
(
verbose_name
=
_
(
"
UNTIS import reference
"
),
null
=
True
,
blank
=
True
)
)
core_models
.
Person
.
field
(
import_ref_untis
=
IntegerField
(
verbose_name
=
_
(
"
UNTIS import reference
"
),
null
=
True
,
blank
=
True
)
)
...
...
@@ -13,6 +17,15 @@ core_models.Group.field(
)
# Chronos models
chronos_models
.
ValidityRange
.
field
(
import_ref_untis
=
IntegerField
(
verbose_name
=
_
(
"
UNTIS import reference
"
),
null
=
True
,
blank
=
True
)
)
chronos_models
.
ValidityRange
.
field
(
school_id_untis
=
IntegerField
(
verbose_name
=
_
(
"
UNTIS school id
"
),
null
=
True
,
blank
=
True
)
)
chronos_models
.
ValidityRange
.
field
(
version_id_untis
=
IntegerField
(
verbose_name
=
_
(
"
UNTIS version id
"
),
null
=
True
,
blank
=
True
)
)
chronos_models
.
Subject
.
field
(
import_ref_untis
=
IntegerField
(
verbose_name
=
_
(
"
UNTIS import reference
"
),
null
=
True
,
blank
=
True
)
)
...
...
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