You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

forms.py 512B

123456789101112
  1. from django import forms
  2. from django.forms.widgets import CheckboxSelectMultiple
  3. from oscar.core.loading import import_module
  4. class SimpleSearch(forms.Form):
  5. CHOICES=(('shipping_address', 'Shipping address'),
  6. ('billing_address', 'Billing address'), ('customer', 'Customer'))
  7. search_query = forms.CharField(max_length=64, label="Search for", required=True)
  8. search_by = forms.MultipleChoiceField(label="Using", choices=CHOICES, widget=CheckboxSelectMultiple(), required=False)