mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.11.x] Fixed nondeterministic ordering test failure in model_forms.
Backport of 2767ef3ca7 from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Shai Berger
						Shai Berger
					
				
			
			
				
	
			
			
			
						parent
						
							d8039dfb0a
						
					
				
				
					commit
					17d75472f0
				
			| @@ -1971,7 +1971,7 @@ class ModelMultipleChoiceFieldTests(TestCase): | ||||
|         ) | ||||
|         article.categories.add(self.c2, self.c3) | ||||
|         form = ArticleCategoriesForm(instance=article) | ||||
|         self.assertEqual(form['categories'].value(), [self.c2.slug, self.c3.slug]) | ||||
|         self.assertCountEqual(form['categories'].value(), [self.c2.slug, self.c3.slug]) | ||||
|  | ||||
|  | ||||
| class ModelOneToOneFieldTests(TestCase): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user