marshmallow-sqlalchemy
marshmallow-sqlalchemy copied to clipboard
SQLAlchemy integration with marshmallow
Hello, With roughly the following models: ``` python class Tariff(rod.model.db.Model, rod.model.PersistentMixin): id = sqlalchemy.schema.Column(sqlalchemy.types.Integer, primary_key=True) title = sqlalchemy.schema.Column(sqlalchemy.types.String()) # Course this tariff belongs to course_id = sqlalchemy.schema.Column(sqlalchemy.types.Integer, sqlalchemy.schema.ForeignKey('course.id')) course =...
My declarative database model looks like this: ``` class X(db.Model): id = db.Column(db.String(128), primary_key=True) yref = db.relationship('Y', backref='x', uselist=False, lazy='joined') def __init__(self, myid): self.id = myid class Y(db.Model): id =...
I'm developing a Flask application using marshmallow-sqlalchemy, and I've run into a funny case where I think I'd like to conditionally apply a field validator. I have `Report` and `ReportItem`...
Given a schema hierarchy of album->track->genres, if `track.genres` is a `Related` field, `tracks.genres.model` returns the model of the top level schema (Album) rather than the model of the `Related` field's...
Currently when querying and serializing against a polymorphic model, the returned attributes are only the ones defined in the parent schema. And not of any of the child Schema, which...
I often use fields.Nested to handle relationships (fields.Related doesn't do what I need). This idea for fields.Relationships creates a fields.Nested, where the schema is based on the parent schema, and...
Back in 0.1, we had a basic interface for customizing the behavior of relationship fields via a `keygetter` passed to `QuerySelect` or `QuerySelectList`. That wound up being a less than...
Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 22.9.11 to 22.9.23. Release notes Sourced from flake8-bugbear's releases. 22.9.23 add B026: find argument unpacking after keyword argument (#287) Move to setup.cfg like flake8 (#288) Commits 8d9c457...
Attempt to address #336, using direction mapping to decide if nullable is to be set False or not pytest result for new branch: `94 passed, 55 warnings` pytest in master...
Hi, During the packaging of version 0.28.1 in Debian I can note that the test_info_override() test still raise the DeprecationWarning. Also I note the issue https://github.com/marshmallow-code/marshmallow-sqlalchemy/issues/361 that was closed, but...