This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2018-04-27 17:16:43 +00:00
|
|
|
from marshmallow.fields import missing_
|
|
|
|
|
|
|
|
from ereuse_devicehub.db import db
|
|
|
|
from teal.db import SQLAlchemy
|
|
|
|
from teal.marshmallow import NestedOn as TealNestedOn
|
|
|
|
|
|
|
|
|
|
|
|
class NestedOn(TealNestedOn):
|
2018-05-11 16:58:48 +00:00
|
|
|
__doc__ = TealNestedOn.__doc__
|
2018-04-30 17:58:19 +00:00
|
|
|
|
2018-05-30 10:49:40 +00:00
|
|
|
def __init__(self, nested, polymorphic_on='type', db: SQLAlchemy = db, collection_class=list,
|
2018-08-03 16:15:08 +00:00
|
|
|
default=missing_, exclude=tuple(), only_query: str = None, only=None, **kwargs):
|
|
|
|
super().__init__(nested, polymorphic_on, db, collection_class, default, exclude,
|
|
|
|
only_query, only, **kwargs)
|