Originally developed by Francesco Banconi (http://code.google.com/p/django-ajax-filtered-fields/)