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

Don't throw ApiFieldError when callable attribute's queryset is empty. #347

Closed
wants to merge 1 commit into from

Conversation

sgarcez
Copy link

@sgarcez sgarcez commented Jan 28, 2012

This is the simplest solution I found, it was taken from https://groups.google.com/group/django-tastypie/browse_thread/thread/e3e83c1db9b47a93

If there is a better way please advise, currently it seems that callable attributes are not usable without this fix.
Thanks.

@DavidYKay
Copy link

I've had this same issue. Is this the best solution?

@aantn
Copy link

aantn commented May 13, 2012

Any progress on this?

@aantn
Copy link

aantn commented Jun 6, 2012

Okay, this isn't necessary for Fields where you can add null=True

@issackelly
Copy link
Contributor

I'm looking through the example and I believe that the answer is to allow null=True if it's going to be empty. This combined with the other tickets about callables should fix it.

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

4 participants