Verified Commit c06ebf39 authored by Peter Stanko's avatar 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
......@@ -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):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment