Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 1.6 in GAE, iexact error, even with dbindexer #23

Open
GAEfan opened this issue Jul 3, 2015 · 0 comments
Open

Django 1.6 in GAE, iexact error, even with dbindexer #23

GAEfan opened this issue Jul 3, 2015 · 0 comments

Comments

@GAEfan
Copy link

GAEfan commented Jul 3, 2015

I tried to update to Django 1.6 from 1.5.5. Mostly works, except when I try to do a search in User admin. The default searches for email iexact. Django gives me the 'Lookup type 'iexact' isn't supported.' error.

I am using djangoappengine and dbindexer. Dbindexer does load the __iexact field into the db. The

register_index(User, {
'username': 'iexact',
'email': 'iexact',
})

does seems to register. But, this version of Django 1.6.11 does not like the iexact.

Traceback:
File "/libs/django/core/handlers/base.py" in get_response

  1.                 response = wrapped_callback(request, _callback_args, *_callback_kwargs)
    
    File "/libs/django/contrib/admin/options.py" in wrapper
  2.             return self.admin_site.admin_view(view)(_args, *_kwargs)
    
    File "/libs/django/utils/decorators.py" in _wrapped_view
  3.                 response = view_func(request, _args, *_kwargs)
    
    File "/libs/django/views/decorators/cache.py" in _wrapped_view_func
  4.     response = view_func(request, _args, *_kwargs)
    
    File "/libs/django/contrib/admin/sites.py" in inner
  5.         return view(request, _args, *_kwargs)
    
    File "/libs/django/utils/decorators.py" in _wrapper
  6.         return bound_func(_args, *_kwargs)
    
    File "/libs/django/utils/decorators.py" in _wrapped_view
  7.                 response = view_func(request, _args, *_kwargs)
    
    File "/libs/django/utils/decorators.py" in bound_func
  8.             return func(self, _args2, *_kwargs2)
    
    File "/libs/django/contrib/admin/options.py" in changelist_view
  9.         'selection_note': _('0 of %(cnt)s selected') % {'cnt': len(cl.result_list)},
    
    File "/libs/django/db/models/query.py" in len
  10.     self._fetch_all()
    
    File "/libs/django/db/models/query.py" in _fetch_all
  11.         self._result_cache = list(self.iterator())
    
    File "/libs/django/db/models/query.py" in iterator
  12.     for row in compiler.results_iter():
    
    File "/libs/djangotoolbox/db/basecompiler.py" in results_iter
  13.         results = self.build_query(fields).fetch(
    
    File "/libs/djangotoolbox/db/basecompiler.py" in build_query
  14.     query.add_filters(self.query.where)
    
    File "/libs/djangotoolbox/db/basecompiler.py" in add_filters
  15.         self.add_filter(field, lookup_type, self._negated, value)
    
    File "/libs/djangoappengine/db/compiler.py" in _func
  16.         return func(_args, *_kwargs)
    
    File "/libs/djangoappengine/db/compiler.py" in add_filter
  17.                             lookup_type)
    

Exception Type: DatabaseError at /admin/auth/user/
Exception Value: Lookup type 'iexact' isn't supported.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant