mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.11.x] Refs #27919 -- Passed ChoiceWidget.create_option() kwargs as expected.
Backport of 6ff356e891 from master
			
			
This commit is contained in:
		| @@ -595,8 +595,8 @@ class ChoiceWidget(Widget): | ||||
|                 if selected is True and has_selected is False: | ||||
|                     has_selected = True | ||||
|                 subgroup.append(self.create_option( | ||||
|                     name, subvalue, sublabel, selected, index, subindex, | ||||
|                     attrs=attrs, | ||||
|                     name, subvalue, sublabel, selected, index, | ||||
|                     subindex=subindex, attrs=attrs, | ||||
|                 )) | ||||
|                 if subindex is not None: | ||||
|                     subindex += 1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user