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
6e061f4c
Verified
Commit
6e061f4c
authored
Feb 24, 2019
by
Peter Stanko
Browse files
Roles list schema should contain the course.codename
parent
0541607d
Pipeline
#29104
passed with stage
in 3 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
portal/rest/schemas.py
View file @
6e061f4c
...
...
@@ -11,8 +11,8 @@ from portal.database.models import ClientType, ProjectState, SubmissionState, Wo
class
NestedCollection
:
ENTITIES
=
{
'Role'
:
(
'id'
,
'codename'
,
'course.id'
),
'Group'
:
(
'id'
,
'codename'
,
'course.id'
),
'Role'
:
(
'id'
,
'codename'
,
'course.id'
,
'course.codename'
),
'Group'
:
(
'id'
,
'codename'
,
'course.id'
,
'course.codename'
),
'Project'
:
(
'id'
,
'codename'
,
'course.id'
),
'Course'
:
(
'id'
,
'codename'
),
'User'
:
(
'id'
,
'username'
,
'uco'
,
'codename'
,
'name'
),
...
...
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