mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #15907 -- Fixed another conflict between the ModelForm exclude and the GenericInline. Thanks, leonelfreire and prestontimmons.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16603 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -10,7 +10,7 @@ from regressiontests.generic_views import views
|
||||
class ModelFormMixinTests(TestCase):
|
||||
def test_get_form(self):
|
||||
form_class = views.AuthorGetQuerySetFormView().get_form_class()
|
||||
self.assertEqual(form_class.Meta.model, Author)
|
||||
self.assertEqual(form_class._meta.model, Author)
|
||||
|
||||
class CreateViewTests(TestCase):
|
||||
urls = 'regressiontests.generic_views.urls'
|
||||
|
||||
Reference in New Issue
Block a user