mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Fixed #11447 -- Ensured that ForeignKey widgets in a list-editable admin changelist won't wrap split the widget. Thanks to patrick@vonautomatisch.at for the report, and Julien Phalip for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15656 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -36,7 +36,7 @@ class ChangeListTests(TransactionTestCase): | ||||
|         template = Template('{% load admin_list %}{% spaceless %}{% result_list cl %}{% endspaceless %}') | ||||
|         context = Context({'cl': cl}) | ||||
|         table_output = template.render(context) | ||||
|         row_html = '<tbody><tr class="row1"><td class="action-checkbox"><input type="checkbox" class="action-select" value="1" name="_selected_action" /></td><th><a href="1/">name</a></th><td>(None)</td></tr></tbody>' | ||||
|         row_html = '<tbody><tr class="row1"><td class="action-checkbox"><input type="checkbox" class="action-select" value="1" name="_selected_action" /></td><th><a href="1/">name</a></th><td class="nowrap">(None)</td></tr></tbody>' | ||||
|         self.assertFalse(table_output.find(row_html) == -1, | ||||
|             'Failed to find expected row element: %s' % table_output) | ||||
|  | ||||
| @@ -57,7 +57,7 @@ class ChangeListTests(TransactionTestCase): | ||||
|         template = Template('{% load admin_list %}{% spaceless %}{% result_list cl %}{% endspaceless %}') | ||||
|         context = Context({'cl': cl}) | ||||
|         table_output = template.render(context) | ||||
|         row_html = '<tbody><tr class="row1"><td class="action-checkbox"><input type="checkbox" class="action-select" value="1" name="_selected_action" /></td><th><a href="1/">name</a></th><td>Parent object</td></tr></tbody>' | ||||
|         row_html = '<tbody><tr class="row1"><td class="action-checkbox"><input type="checkbox" class="action-select" value="1" name="_selected_action" /></td><th><a href="1/">name</a></th><td class="nowrap">Parent object</td></tr></tbody>' | ||||
|         self.assertFalse(table_output.find(row_html) == -1, | ||||
|             'Failed to find expected row element: %s' % table_output) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user