mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	| @@ -1525,7 +1525,10 @@ class OldFormForXTests(TestCase): | |||||||
|         colour = Colour.objects.create(name='Blue') |         colour = Colour.objects.create(name='Blue') | ||||||
|         form = ColourfulItemForm() |         form = ColourfulItemForm() | ||||||
|         self.maxDiff = 1024 |         self.maxDiff = 1024 | ||||||
|         self.assertHTMLEqual(form.as_p(), """<p><label for="id_name">Name:</label> <input id="id_name" type="text" name="name" maxlength="50" /></p> |         self.assertHTMLEqual( | ||||||
|  |             form.as_p(), | ||||||
|  |             """<p><label for="id_name">Name:</label> <input id="id_name" type="text" name="name" maxlength="50" /></p> | ||||||
|         <p><label for="id_colours">Colours:</label> <select multiple="multiple" name="colours" id="id_colours"> |         <p><label for="id_colours">Colours:</label> <select multiple="multiple" name="colours" id="id_colours"> | ||||||
|         <option value="1">Blue</option> |         <option value="%(blue_pk)s">Blue</option> | ||||||
|         </select> <span class="helptext"> Hold down "Control", or "Command" on a Mac, to select more than one.</span></p>""") |         </select> <span class="helptext"> Hold down "Control", or "Command" on a Mac, to select more than one.</span></p>""" | ||||||
|  |             % {'blue_pk': colour.pk}) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user