mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[6.0.x] Refs #31223 -- Added __class_getitem__() to SetPasswordMixin.
Backport of d0c8f89c94 from main.
			
			
This commit is contained in:
		
				
					committed by
					
						 Jacob Walls
						Jacob Walls
					
				
			
			
				
	
			
			
			
						parent
						
							50d31aeb49
						
					
				
				
					commit
					b077982b3e
				
			| @@ -350,6 +350,9 @@ class BaseUserCreationFormTest(TestDataMixin, TestCase): | ||||
|                     form.fields[field_name].widget.attrs["autocomplete"], autocomplete | ||||
|                 ) | ||||
|  | ||||
|     def test_user_creation_form_class_getitem(self): | ||||
|         self.assertIs(BaseUserCreationForm["MyCustomUser"], BaseUserCreationForm) | ||||
|  | ||||
|  | ||||
| class CustomUserCreationFormTest(TestDataMixin, TestCase): | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user