#3400: Support for lookup separator with list_filter admin option
-------------------------------------------+--------------------------------
Reporter: [email protected] | Owner: DrMeers
Status: assigned | Milestone: 1.3
Component: django.contrib.admin | Version: newforms-admin
Resolution: | Keywords: edc nfa-someday
list_filter FilterSpec nfa-changelist ep2008
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Comment (by foxwhisper):
Hi DrMeers,
I actually had problems merging the tests in, the patch file said the path
specified for the tests was not valid, but it worked on the other files,
so I marked it as "needs tests" but I prob should have marked it as patch
needs improvement.
Also, I'm getting problems now in production, which I will attempt to fix
later:
Environment:
Request Method: GET
Request URL: http://dev.app.textrecommend.co.uk/admin/mvoucher/vouchersms/
Django Version: 1.2 beta 1
Python Version: 2.6.5
Installed Applications:
['webapp.mvoucher',
'webapp.djangoextend',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'webapp.djangoextend.djangologging.middleware.SuppressLoggingOnAjaxRequestsMiddleware',
'webapp.djangoextend.djangologging.middleware.LoggingMiddleware',
'webapp.djangoextend.core.GlobalRequestMiddleware',
'webapp.djangoextend.middleware.DjangoExtendMiddleware')
Traceback:
File "/home/textrecommend/local/lib/python2.6/site-
packages/django/core/handlers/base.py" in get_response
100. response = callback(request, *callback_args,
**callback_kwargs)
File "/home/textrecommend/local/lib/python2.6/site-
packages/django/contrib/admin/options.py" in wrapper
243. return self.admin_site.admin_view(view)(*args,
**kwargs)
File "/home/textrecommend/local/lib/python2.6/site-
packages/django/utils/decorators.py" in _wrapped_view
74. response = view_func(request, *args, **kwargs)
File "/home/textrecommend/local/lib/python2.6/site-
packages/django/views/decorators/cache.py" in _wrapped_view_func
69. response = view_func(request, *args, **kwargs)
File "/home/textrecommend/local/lib/python2.6/site-
packages/django/contrib/admin/sites.py" in inner
194. return view(request, *args, **kwargs)
File "/home/textrecommend/local/lib/python2.6/site-
packages/django/utils/decorators.py" in _wrapper
21. return decorator(bound_func)(*args, **kwargs)
File "/home/textrecommend/local/lib/python2.6/site-
packages/django/utils/decorators.py" in _wrapped_view
74. response = view_func(request, *args, **kwargs)
File "/home/textrecommend/local/lib/python2.6/site-
packages/django/utils/decorators.py" in bound_func
17. return func(self, *args2, **kwargs2)
File "/home/textrecommend/local/lib/python2.6/site-
packages/django/contrib/admin/options.py" in changelist_view
970. self.date_hierarchy, self.search_fields,
self.list_select_related, self.list_per_page, self.list_editable, self)
File "/home/textrecommend/local/lib/python2.6/site-
packages/django/contrib/admin/views/main.py" in __init__
71. self.filter_specs, self.has_filters =
self.get_filters(request)
File "/home/textrecommend/local/lib/python2.6/site-
packages/django/contrib/admin/views/main.py" in get_filters
81. field_path=filter_name)
File "/home/textrecommend/local/lib/python2.6/site-
packages/django/contrib/admin/filterspecs.py" in create
39. field_path=field_path)
File "/home/textrecommend/local/lib/python2.6/site-
packages/django/contrib/admin/filterspecs.py" in __init__
201. limit_choices_to = get_limit_choices_to_from_path(model,
field_path)
File "/home/textrecommend/local/lib/python2.6/site-
packages/django/contrib/admin/util.py" in get_limit_choices_to_from_path
421. hasattr(fields[-1], 'rel') and
Exception Type: IndexError at /admin/mvoucher/vouchersms/
Exception Value: list index out of range
/home/textrecommend/local/lib/python2.6/site-
packages/django/contrib/admin/util.py in get_limit_choices_to_from_path
hasattr(fields[-1], 'rel') and ...
▼ Local vars
Variable Value
fields
[]
model
<class 'webapp.mvoucher.models.VoucherSMS'>
path
'carrier_status_code'
# If the carrier returns a status code, this is placed into here.
carrier_status_code = models.CharField(max_length=64, blank=True,
null=True)
--
Ticket URL: <http://code.djangoproject.com/ticket/3400#comment:63>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.