Fandekasp/django-ajaxmiddleware — pull request #1 by mbrochh (2012-06-25 06:43:13+00:00)
Title: Small fix to get it working with Django 1.4

Disclaimer: I have no idea what I am doing here. It just happened that `cell_contents` returned `()` and therefore did not have `__module__`. Out of curiosity I debugged this and saw that when this happens with `func_closure[1]`, it would actually work with `func_closure[0]` and vice versa. So I just guess that we have to check both indexes.