Closed njoyard closed 8 years ago
Environment: Request Method: GET Request URL: http://localhost:8000/admin/representatives_recommendations/recommendation/?q=plop Django Version: 1.8.14 Python Version: 2.7.10 Installed Applications: ('dal', 'dal_select2', 'suit', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'django.contrib.sites', 'compressor', 'bootstrap3', 'datetimewidget', 'django_filters', 'fontawesome', 'rest_framework', 'taggit', 'core', 'memopol', 'memopol_scores', 'memopol_settings', 'memopol_themes', 'representatives', 'representatives_votes', 'representatives_recommendations', 'representatives_positions', 'debug_toolbar') Installed Middleware: (u'debug_toolbar.middleware.DebugToolbarMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.contrib.sites.middleware.CurrentSiteMiddleware') Traceback: File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 132. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in wrapper 618. return self.admin_site.admin_view(view)(*args, **kwargs) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view 110. response = view_func(request, *args, **kwargs) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 57. response = view_func(request, *args, **kwargs) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner 233. return view(request, *args, **kwargs) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapper 34. return bound_func(*args, **kwargs) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view 110. response = view_func(request, *args, **kwargs) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/utils/decorators.py" in bound_func 30. return func.__get__(self, type(self))(*args2, **kwargs2) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in changelist_view 1550. self.list_max_show_all, self.list_editable, self) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/contrib/admin/views/main.py" in __init__ 81. self.queryset = self.get_queryset(request) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/contrib/admin/views/main.py" in get_queryset 359. request, qs, self.query) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/contrib/admin/options.py" in get_search_results 991. queryset = queryset.filter(reduce(operator.or_, or_queries)) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/db/models/query.py" in filter 679. return self._filter_or_exclude(False, *args, **kwargs) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/db/models/query.py" in _filter_or_exclude 697. clone.query.add_q(Q(*args, **kwargs)) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/db/models/sql/query.py" in add_q 1310. clause, require_inner = self._add_q(where_part, self.used_aliases) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/db/models/sql/query.py" in _add_q 1332. current_negated, allow_joins, split_subq) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/db/models/sql/query.py" in _add_q 1338. allow_joins=allow_joins, split_subq=split_subq, File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/db/models/sql/query.py" in build_filter 1200. lookups, value) File "/home/niko/dev/memopol/ve/local/lib/python2.7/site-packages/django/db/models/fields/related.py" in get_lookup_constraint 1774. raise TypeError('Related Field got invalid lookup: %s' % lookup_type) Exception Type: TypeError at /admin/representatives_recommendations/recommendation/ Exception Value: Related Field got invalid lookup: icontains