Closed gmgp closed 10 years ago
Se ricerco fero nel campo libero va in errore
Environment: Request Method: GET Request URL: http://bureau-manager.rn2014.it/admin/edda/humen/?q=fero Django Version: 1.7b4 Python Version: 2.7.3 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'edda', 'suit', 'django.contrib.admin') Installed Middleware: ('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') Traceback: File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response 111. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py" in wrapper 550. return self.admin_site.admin_view(view)(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view 105. response = view_func(request, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/cache.py" in _wrapped_view_func 52. response = view_func(request, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/sites.py" in inner 204. return view(request, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapper 29. return bound_func(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view 105. response = view_func(request, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in bound_func 25. return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py" in changelist_view 1449. self.list_max_show_all, self.list_editable, self) File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/views/main.py" in __init__ 104. self.queryset = self.get_queryset(request) File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/views/main.py" in get_queryset 389. request, qs, self.query) File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py" in get_search_results 923. queryset = queryset.filter(reduce(operator.or_, or_queries)) File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" in filter 689. return self._filter_or_exclude(False, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" in _filter_or_exclude 707. clone.query.add_q(Q(*args, **kwargs)) File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py" in add_q 1287. clause, require_inner = self._add_q(where_part, self.used_aliases) File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py" in _add_q 1309. current_negated) File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py" in _add_q 1314. current_negated=current_negated, connector=connector) File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py" in build_filter 1181. lookups, value) File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/related.py" in get_lookup_constraint 1551. raise TypeError('Related Field got invalid lookup: %s' % lookup_type) Exception Type: TypeError at /admin/edda/humen/ Exception Value: Related Field got invalid lookup: icontains
fixato in produzione. deriva dalla mutazione nella gestione dei ruoli (foreign key e non piu' campo testo)
Se ricerco fero nel campo libero va in errore