Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kontr 2.0
Portal API Backend
Commits
5217d57d
Verified
Commit
5217d57d
authored
Apr 18, 2019
by
Peter Stanko
Browse files
Faculty id attribute in the schema
parent
ae5cd1b6
Pipeline
#31524
passed with stage
in 7 minutes and 34 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
portal/rest/schemas.py
View file @
5217d57d
...
...
@@ -129,6 +129,7 @@ class CourseSchema(BaseSchema, NamedSchema, Schema):
"""Course Schema
"""
state
=
EnumField
(
CourseState
,
by_value
=
True
)
faculty_id
=
fields
.
Int
(
required
=
False
,
allow_none
=
True
)
roles
=
NESTED
[
'roles'
]
groups
=
NESTED
[
'groups'
]
projects
=
NESTED
[
'projects'
]
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment