Issue #225 new

Return False, 0, "" in extra fields

Anonymous created an issue

https://bitbucket.org/jespern/django-piston/src/7c90898072ce9462a6023bbec5d408ad097a362b/piston/emitters.py?at=default#cl-238

I want to return False in the API using a property on a model. But this bit of code makes sure it disappears from the payload.

My current workaround is to not use a property but a function and then that gets through - but I think this may want to be changed...

Comments (0)

  1. Log in to comment