Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial and field source don't mix very well #89

Open
jackqu7 opened this issue Nov 2, 2015 · 0 comments
Open

Partial and field source don't mix very well #89

jackqu7 opened this issue Nov 2, 2015 · 0 comments
Labels

Comments

@jackqu7
Copy link
Collaborator

jackqu7 commented Nov 2, 2015

name = field.String(source='full', required=True)

@marshaling.processes('name')
def print_name(session):
     print(session.data)

mapper.marshal({}, partial=True, obj=existing_obj)

expected result: session.data == existing_obj.full
actual result: session.data == None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants