Skip to content

Commit

Permalink
Added alias to Marshmallow pre_dump and pre_load
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Jun 29, 2020
1 parent 6b41db8 commit c80e45f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/labthings/server/schema.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
# -*- coding: utf-8 -*-
from flask import url_for
from werkzeug.routing import BuildError
from marshmallow import Schema, pre_dump
from marshmallow import Schema, pre_load, pre_dump
from collections.abc import Mapping

from .names import TASK_ENDPOINT, EXTENSION_LIST_ENDPOINT
from .utilities import view_class_from_endpoint, description_from_view
from . import fields

__all__ = ["Schema", "FieldSchema", "TaskSchema", "ExtensionSchema"]
__all__ = [
"Schema",
"FieldSchema",
"TaskSchema",
"ExtensionSchema",
"pre_load",
"pre_dump",
]


class FieldSchema(Schema):
Expand Down

0 comments on commit c80e45f

Please sign in to comment.