﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
9592	generic_inline_admin test fails when run with all tests	Karen Tracey	Brian Rosner	"Alone, the new generic_inline_admin test (r9412/r9413) runs fine.  However when the whole test suite is run it's failing.  From the buildbot logs:

{{{
======================================================================
ERROR: testBasicEditPost (regressiontests.generic_inline_admin.tests.GenericAdminViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/tests/regressiontests/generic_inline_admin/tests.py"", line 65, in testBasicEditPost
    response = self.client.post('/generic_inline_admin/admin/generic_inline_admin/episode/1/', post_data)
  File ""/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/django/test/client.py"", line 296, in post
    return self.request(**r)
  File ""/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/django/core/handlers/base.py"", line 86, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File ""/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/django/contrib/admin/sites.py"", line 157, in root
    return self.model_page(request, *url.split('/', 2))
  File ""/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/django/views/decorators/cache.py"", line 44, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File ""/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/django/contrib/admin/sites.py"", line 176, in model_page
    return admin_obj(request, rest_of_url)
  File ""/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/django/contrib/admin/options.py"", line 197, in __call__
    return self.change_view(request, unquote(url))
  File ""/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/django/db/transaction.py"", line 238, in _commit_on_success
    res = func(*args, **kw)
  File ""/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/django/contrib/admin/options.py"", line 576, in change_view
    instance=new_object)
  File ""/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/django/contrib/contenttypes/generic.py"", line 303, in __init__
    prefix=self.rel_name
  File ""/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/django/forms/models.py"", line 352, in __init__
    super(BaseModelFormSet, self).__init__(**defaults)
  File ""/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/django/forms/formsets.py"", line 67, in __init__
    self._construct_forms()
  File ""/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/django/forms/formsets.py"", line 76, in _construct_forms
    self.forms.append(self._construct_form(i))
  File ""/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/django/forms/models.py"", line 356, in _construct_form
    kwargs['instance'] = self.get_queryset()[i]
  File ""/home/buildbots/slave/parts/ubuntu-feisty-python2.5-sqlite/django-trunk_ubuntu-feisty-python2.5-sqlite/build/django/db/models/query.py"", line 238, in __getitem__
    return list(qs)[0]
IndexError: list index out of range

----------------------------------------------------------------------
Ran 546 tests in 645.917s

FAILED (errors=1)
Destroying test database...
program finished with exit code 1
}}}

"		closed	Uncategorized	1.0		fixed			Accepted	0	0	0	0	0	0
