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
c06ebf39
Verified
Commit
c06ebf39
authored
Feb 10, 2019
by
Peter Stanko
Browse files
Created at and updated at should be read only for the schema
parent
7b189187
Pipeline
#28726
passed with stage
in 3 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
portal/rest/schemas.py
View file @
c06ebf39
...
...
@@ -82,8 +82,8 @@ NESTED = NestedCollection(__name__)
# pylint: disable=too-few-public-methods
class
BaseSchema
(
object
):
id
=
fields
.
Str
(
dump_only
=
True
,
required
=
True
)
created_at
=
fields
.
LocalDateTime
()
updated_at
=
fields
.
LocalDateTime
()
created_at
=
fields
.
LocalDateTime
(
dump_only
=
True
,
allow_none
=
True
)
updated_at
=
fields
.
LocalDateTime
(
dump_only
=
True
,
allow_none
=
True
)
class
NamedSchema
(
object
):
...
...
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