mirror of
https://github.com/django/django.git
synced 2025-07-22 20:55:17 +00:00
Start attacking E231 violations
This commit is contained in:
parent
382d324ccc
commit
9bf5610890
31 changed files with 92 additions and 90 deletions
|
@ -660,7 +660,7 @@ class ChoiceFieldRenderer(object):
|
|||
output = [start_tag]
|
||||
for i, choice in enumerate(self.choices):
|
||||
choice_value, choice_label = choice
|
||||
if isinstance(choice_label, (tuple,list)):
|
||||
if isinstance(choice_label, (tuple, list)):
|
||||
attrs_plus = self.attrs.copy()
|
||||
if id_:
|
||||
attrs_plus['id'] += '_{0}'.format(i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue