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

Fix for #955 #1215

Merged
merged 3 commits into from Sep 26, 2014
Merged

Conversation

harishnsrinivas
Copy link
Contributor

If a ToOneField/ToManyField has a callable attribute that returns None, We get the issue #955 . I have sent a small fix and included a test case inside tests/core/fields.py - test_dehydrate_with_callable with field_3 that verifies an APIError return value(As per the fix). The message returned may not be the right one though. Please review and let me know if any more changes are required.

@harishnsrinivas
Copy link
Contributor Author

Any update on this request? Any body?

toastdriven added a commit that referenced this pull request Sep 26, 2014
@toastdriven toastdriven merged commit 437dcb5 into django-tastypie:master Sep 26, 2014
@toastdriven
Copy link
Contributor

Thanks, this fix looks good! Merged.

@harishnsrinivas
Copy link
Contributor Author

Cool.. Btw I forgot to add myself to authors list. Do I need to send another request with that in?

@toastdriven
Copy link
Contributor

@harishnsrinivas Sure, that'd be appreciated.

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