mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
update the way arguments are used in ReservedValueHiddenInput.build_attrs function in paypal.standard.widgets
This commit is contained in:
parent
88f19ffaf6
commit
a760f71fce
1 changed files with 1 additions and 1 deletions
2
vendor/paypal/standard/widgets.py
vendored
2
vendor/paypal/standard/widgets.py
vendored
|
@ -28,7 +28,7 @@ class ReservedValueHiddenInput(ValueHiddenInput):
|
|||
def render(self, name, value, attrs=None):
|
||||
if value is None:
|
||||
value = ''
|
||||
final_attrs = self.build_attrs(attrs, type=self.input_type)
|
||||
final_attrs = self.build_attrs(attrs, {"type": self.input_type})
|
||||
if value != '':
|
||||
final_attrs['value'] = force_text(value)
|
||||
return mark_safe(u'<input%s />' % flatatt(final_attrs))
|
||||
|
|
Loading…
Add table
Reference in a new issue