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

Add missing parameter #134

Merged
merged 4 commits into from Jan 30, 2015
Merged

Add missing parameter #134

merged 4 commits into from Jan 30, 2015

Conversation

philtay
Copy link
Contributor

@philtay philtay commented Jan 27, 2015

Implements #115

If it's ok tests and docs will be added.

@@ -371,7 +374,7 @@ class Field(FieldABC):

def __init__(self, default=None, attribute=None, load_from=None, error=None,
validate=None, required=False, allow_none=False, load_only=False,
dump_only=False, **metadata):
dump_only=False, missing=None, **metadata):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None should be a valid value for missing. Perhaps you can make the default null here to allow None to be used as a value for missing data.

@philtay
Copy link
Contributor Author

philtay commented Jan 28, 2015

  • Used null instead of none
  • Added docs
  • Added tests

P.S. Have you an idea on when you'll have the time to release 2.0?

sloria added a commit that referenced this pull request Jan 30, 2015
@sloria sloria merged commit d5bf91a into marshmallow-code:dev Jan 30, 2015
@sloria
Copy link
Member

sloria commented Jan 30, 2015

Thanks @philtay.

I don't have a scheduled release date for 2.0, but I'm hoping to have 2.0-a released within the next 2-3 weeks.

@philtay
Copy link
Contributor Author

philtay commented Jan 30, 2015

@sloria don't forget to update the changelog with this new parameter

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

Successfully merging this pull request may close these issues.

None yet

2 participants