Flask-Restless only accepts arguments that are columns defined in a SQLAlchemy model. I want to take something like blue green
and store it in two columns primary_color
and secondary_color
.
Right now, I am POSTing the data as primary_color
(an allowed field) and using a postprocessor
to split it into primary_color
and secondary_color
.
Is it possible to do something cleaner and more semantic, like POST a colors
field and then process it afterwards?