mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #7738: support initial values via GET for SelectMutliple in the admin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -36,6 +36,14 @@ class AdminViewBasicTest(TestCase):
|
||||
response = self.client.get('/test_admin/admin/admin_views/section/add/')
|
||||
self.failUnlessEqual(response.status_code, 200)
|
||||
|
||||
def testAddWithGETArgs(self):
|
||||
response = self.client.get('/test_admin/admin/admin_views/section/add/', {'name': 'My Section'})
|
||||
self.failUnlessEqual(response.status_code, 200)
|
||||
self.failUnless(
|
||||
'value="My Section"' in response.content,
|
||||
"Couldn't find an input with the right value in the response."
|
||||
)
|
||||
|
||||
def testBasicEditGet(self):
|
||||
"""
|
||||
A smoke test to ensureGET on the change_view works.
|
||||
|
||||
Reference in New Issue
Block a user