mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #12692 - Properly handle the extra clause of admin inline formsets. Also fixes #12703, second error.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12369 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -9,6 +9,7 @@ class DeletionTests(TestCase):
|
||||
data = {
|
||||
'form-TOTAL_FORMS': u'1',
|
||||
'form-INITIAL_FORMS': u'1',
|
||||
'form-MAX_NUM_FORMS': u'0',
|
||||
'form-0-id': str(poet.pk),
|
||||
'form-0-name': u'test',
|
||||
'form-0-DELETE': u'on',
|
||||
@@ -27,6 +28,7 @@ class DeletionTests(TestCase):
|
||||
data = {
|
||||
'form-TOTAL_FORMS': u'1',
|
||||
'form-INITIAL_FORMS': u'0',
|
||||
'form-MAX_NUM_FORMS': u'0',
|
||||
'form-0-id': u'',
|
||||
'form-0-name': u'x' * 1000,
|
||||
}
|
||||
@@ -53,6 +55,7 @@ class DeletionTests(TestCase):
|
||||
data = {
|
||||
'form-TOTAL_FORMS': u'1',
|
||||
'form-INITIAL_FORMS': u'1',
|
||||
'form-MAX_NUM_FORMS': u'0',
|
||||
'form-0-id': u'1',
|
||||
'form-0-name': u'x' * 1000,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user