Hi,
As a quick workaround, I thought of modifying serializers.custom_json
in the following manner:
1. check whether the item is a lambda expression
2. if so, return its string representation (using repr())
I used a nice "islambda" function I found in
http://bytes.com/topic/python/answers/39908-what-lambda-used-real-code
I guess there's no point in returning the string represntation of the
function to the user, so this probably won't be the final solution to
this issue.
What do yo think about this fix?
Sincerely,
Amnon