links = LinkSchema(many=True)
. Then in the views.py
, I’d imported links
as links_schema
, and used that to process what is returned to the client.query.pagination() -> PaginationSChema -> MorphingSchema -> (target schema)
). Is that right? This is perhaps why the data that’s being sent to the client is off: because it’s just the target schema essentially, and hasn’t been wrapped by the PaginationSchema? Am I on the right track?/links
/ route return in a way that resembles what you’ve got in that /latest
view? I.e. feed a query = Object.query
to objects_paged.dump()
imported from beavy.models.object
, passing it through the as_page()
method?