steveandroulakis / mytardis-lighthouse-migrate-test

testing migrations from http://mytardis.lighthouseapp.com/ to Github Issues
0 stars 0 forks source link

Admin dataset_ file search doesn't work #172

Open steveandroulakis opened 11 years ago

steveandroulakis commented 11 years ago

If I try to use the Search button in the dataset_ files page of the administration interface, I see a 501 error.

The stacktrace is as follows:

Traceback (most recent call last):

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/core/handlers/base.py", line 111, in get_response response = callback(request, _callback_args, *_callback_kwargs)

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/contrib/admin/options.py", line 366, in wrapper return self.admin_site.admin_view(view)(_args, *_kwargs)

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/utils/decorators.py", line 91, in _wrapped_view response = view_func(request, _args, *_kwargs)

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/views/decorators/cache.py", line 89, in _wrapped_view_func response = view_func(request, _args, *_kwargs)

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/contrib/admin/sites.py", line 196, in inner return view(request, _args, *_kwargs)

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/utils/decorators.py", line 25, in _wrapper return bound_func(_args, *_kwargs)

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/utils/decorators.py", line 91, in _wrapped_view response = view_func(request, _args, *_kwargs)

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/utils/decorators.py", line 21, in bound_func return func(self, _args2, *_kwargs2)

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/contrib/admin/options.py", line 1128, in changelist_view self)

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/contrib/admin/views/main.py", line 71, in init self.query_set = self.get_query_set(request)

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/contrib/admin/views/main.py", line 365, in get_queryset qs = qs.filter(reduce(operator.or, or_queries))

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/db/models/query.py", line 621, in filter return self._filter_or_exclude(False, _args, *_kwargs)

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/db/models/query.py", line 639, in _filter_or_exclude clone.query.add_q(Q(_args, *_kwargs))

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/db/models/sql/query.py", line 1247, in add_q self.add_q(child, used_aliases, force_having=force_having)

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/db/models/sql/query.py", line 1250, in add_q can_reuse=used_aliases, force_having=force_having)

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/db/models/sql/query.py", line 1122, in add_filter process_extras=process_extras)

File "/opt/mytardis/releases/41e41eff460c9d1a8c56ad47a533c3edd3b52553/eggs/Django-1.4.1-py2.6.egg/django/db/models/sql/query.py", line 1316, in setup_joins "Choices are: %s" % (name, ", ".join(names)))

FieldError: Cannot resolve keyword 'experiment' into field. Choices are: dataset_file, datasetparameterset, description, experiments, id, immutable

<WSGIRequest path:/admin/tardis_portal/dataset_file/, GET:<QueryDict: {u'q': [u'xyzzy']}>, POST:<QueryDict: {}>, COOKIES:{...}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'CSRF_COOKIE': '...', 'DOCUMENT_ROOT': '/etc/nginx//html', 'HTTPACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,/_;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': '....', 'HTTP_HOST': 'mirage.cmm.uq.edu.au', 'HTTP_REFERER': 'http://mirage.cmm.uq.edu.au/admin/tardis_portal/dataset_file/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1', 'PATH_INFO': u'/admin/tardis_portal/dataset_file/', 'QUERY_STRING': 'q=xyzzy', 'REMOTE_ADDR': '...', 'REMOTE_PORT': '36200', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/admin/tardis_portal/dataset_file/?q=xyzzy', 'SCRIPT_NAME': u'', 'SERVER_NAME': '', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'mirage.cmm.uq.edu.au', 'uwsgi.version': '1.2.4', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x2c7a300>, 'wsgi.file_wrapper': , 'wsgi.input': <uwsgi._Input object at 0x6b47ef0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>

original LH ticket

This ticket has 0 attachment(s).