I've not really used Geraldo enough yet to have a deep insight, and
I'm not really a Django user, but I'd suggest either stepping through
with a (remote) debugger, or just splitting out the lambda into a
function so you can put some print statements or other logging into
your code and work out what is going on.
Cheers,
Rasjid.