mirror of
https://github.com/django/django.git
synced 2024-11-30 07:06:18 +01:00
Refs #25731 -- Removed unused MultipleHiddenInput choices
This commit is contained in:
parent
5e8685c1b1
commit
65c13f9675
@ -307,12 +307,7 @@ class MultipleHiddenInput(HiddenInput):
|
|||||||
A widget that handles <input type="hidden"> for fields that have a list
|
A widget that handles <input type="hidden"> for fields that have a list
|
||||||
of values.
|
of values.
|
||||||
"""
|
"""
|
||||||
def __init__(self, attrs=None, choices=()):
|
def render(self, name, value, attrs=None):
|
||||||
super(MultipleHiddenInput, self).__init__(attrs)
|
|
||||||
# choices can be any iterable
|
|
||||||
self.choices = choices
|
|
||||||
|
|
||||||
def render(self, name, value, attrs=None, choices=()):
|
|
||||||
if value is None:
|
if value is None:
|
||||||
value = []
|
value = []
|
||||||
final_attrs = self.build_attrs(attrs, type=self.input_type, name=name)
|
final_attrs = self.build_attrs(attrs, type=self.input_type, name=name)
|
||||||
|
Loading…
Reference in New Issue
Block a user