Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ross I Kinsey
where
Commits
86f6d008
Commit
86f6d008
authored
Feb 23, 2020
by
Zach Perkins
Browse files
Added marshmallow schemas
parent
4ef83d31
Changes
1
Hide whitespace changes
Inline
Side-by-side
where/validation.py
0 → 100644
View file @
86f6d008
from
marshmallow_sqlalchemy
import
SQLAlchemyAutoSchema
from
.model
import
Point
,
Category
,
Field
class
PointSchema
(
SQLAlchemyAutoSchema
):
class
Meta
:
model
=
Point
include_relationships
=
True
load_instance
=
True
class
CategorySchema
(
SQLAlchemyAutoSchema
):
class
Meta
:
model
=
Category
include_relationships
=
True
load_instance
=
True
class
FieldSchema
(
SQLAlchemyAutoSchema
):
class
Meta
:
model
=
Field
include_relationships
=
True
load_instance
=
True
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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