mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Fixed typo in ModelChoiceFieldTests.
The subindex and attrs arguments should be passed through to the parent, not overridden as None.
This commit is contained in:
parent
88637064b3
commit
8d087f9a17
@ -275,7 +275,7 @@ class ModelChoiceFieldTests(TestCase):
|
||||
|
||||
class CustomCheckboxSelectMultiple(CheckboxSelectMultiple):
|
||||
def create_option(self, name, value, label, selected, index, subindex=None, attrs=None):
|
||||
option = super().create_option(name, value, label, selected, index, subindex=None, attrs=None)
|
||||
option = super().create_option(name, value, label, selected, index, subindex, attrs)
|
||||
# Modify the HTML based on the object being rendered.
|
||||
c = value.obj
|
||||
option['attrs']['data-slug'] = c.slug
|
||||
|
Loading…
Reference in New Issue
Block a user