mirror of
https://github.com/django/django.git
synced 2025-11-01 04:17:59 +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:
parent
3d027b72eb
commit
386b12c1c6
4 changed files with 98 additions and 26 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue