diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-12-11 06:15:12 -0800 |
---|---|---|
committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-12-11 15:15:12 +0100 |
commit | 8d087f9a179c287e5bb1e24558b097e0a761bc28 (patch) | |
tree | 67452dbf95d3d4af4b62bccc73d18684e983da0f /tests/model_forms | |
parent | 88637064b3118f90ae5a402e1b47a243ef88d656 (diff) | |
download | django-8d087f9a179c287e5bb1e24558b097e0a761bc28.tar.gz |
Fixed typo in ModelChoiceFieldTests.
The subindex and attrs arguments should be passed through to the parent,
not overridden as None.
Diffstat (limited to 'tests/model_forms')
-rw-r--r-- | tests/model_forms/test_modelchoicefield.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_forms/test_modelchoicefield.py b/tests/model_forms/test_modelchoicefield.py index 0591c425fe..cecc727267 100644 --- a/tests/model_forms/test_modelchoicefield.py +++ b/tests/model_forms/test_modelchoicefield.py @@ -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 |