Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
moh-moola committed Jul 11, 2018
1 parent 75d18b2 commit 79188a4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions molo/surveys/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,12 @@ def create_radio_field(self, field, options):
return CharacterCountChoiceField(widget=forms.RadioSelect, **options)

def create_checkboxes_field(self, field, options):
options['choices'] = [(x.strip(), x.strip()) for x in field.choices.split(',')]
options['initial'] = [x.strip() for x in field.default_value.split(',')]
options['choices'] = [
(x.strip(), x.strip()) for x in field.choices.split(',')
]
options['initial'] = [
x.strip() for x in field.default_value.split(',')
]
return CharacterCountMultipleChoiceField(
widget=forms.CheckboxSelectMultiple, **options)

Expand Down

0 comments on commit 79188a4

Please sign in to comment.