In file django.contrib.auth.forms line 227 there is a 'iexact' lookup that throws this error: _Lookup type 'iexact' isn't supported._ I have changed it to a simple equal lookup and seems to be fine now.