Fixed failing tests caused by r14667
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14670 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
aee9db9b3e
commit
73cd9b61c9
|
@ -196,12 +196,12 @@ class FormfieldCallbackTests(TestCase):
|
|||
|
||||
def test_inlineformset_factory_default(self):
|
||||
Formset = inlineformset_factory(User, UserSite, form=UserSiteForm)
|
||||
form = Formset({}).forms[0]
|
||||
form = Formset().forms[0]
|
||||
self.assertTrue(isinstance(form['data'].field.widget, CustomWidget))
|
||||
|
||||
def test_modelformset_factory_default(self):
|
||||
Formset = modelformset_factory(UserSite, form=UserSiteForm)
|
||||
form = Formset({}).forms[0]
|
||||
form = Formset().forms[0]
|
||||
self.assertTrue(isinstance(form['data'].field.widget, CustomWidget))
|
||||
|
||||
def assertCallbackCalled(self, callback):
|
||||
|
|
Loading…
Reference in New Issue