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
7b25ecb2
Verified
Commit
7b25ecb2
authored
Apr 15, 2019
by
Peter Stanko
Browse files
State should be updatable
parent
5bdb05db
Pipeline
#31390
failed with stage
in 7 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
portal/database/models.py
View file @
7b25ecb2
...
@@ -316,7 +316,7 @@ def _get_class_based_on_client_type(client_type):
...
@@ -316,7 +316,7 @@ def _get_class_based_on_client_type(client_type):
class
Course
(
db
.
Model
,
EntityBase
,
NamedMixin
):
class
Course
(
db
.
Model
,
EntityBase
,
NamedMixin
):
"""Course model
"""Course model
"""
"""
UPDATABLE
=
[
'faculty_id'
]
UPDATABLE
=
[
'faculty_id'
,
'state'
]
BASE_PARAMS
=
[
'id'
,
*
UPDATABLE
]
BASE_PARAMS
=
[
'id'
,
*
UPDATABLE
]
LISTABLE
=
[
*
BASE_PARAMS
]
LISTABLE
=
[
*
BASE_PARAMS
]
__tablename__
=
'course'
__tablename__
=
'course'
...
...
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