Skip to content

Commit

Permalink
remove label from PaymentModule choice
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacrymology committed Feb 21, 2013
1 parent ff85859 commit 29b6697
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions boilerplate/apps/store/apps/checkout/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ def post(self, request, *args, **kwargs):

def get_form_class(self):
class PaymentModuleForm(forms.Form):
module = forms.ChoiceField(choices=[
m['app'].get_choice()
for m in self.app.modules.values()],
widget=forms.RadioSelect)
module = forms.ChoiceField(
label='', # no label for this field
choices=[m['app'].get_choice()
for m in self.app.modules.values()],
widget=forms.RadioSelect)
return PaymentModuleForm

def form_valid(self, form):
Expand Down

0 comments on commit 29b6697

Please sign in to comment.