@@ -38,13 +38,13 @@ class AddViolation(forms.Form):
captcha=CaptchaField(label=_("In order to protect against spam, please fill in the result of the following calculation. (note the + and the * are somewhat confusing)"))
classSearchViolation(SearchForm):
country=forms.ChoiceField(required=True,choices=(('',''),)+tuple(sorted(COUNTRIES,key=itemgetter(1))),label=_("Country"),help_text=_('EU member state where the restriction is reported.'))
operator=forms.CharField(required=True,max_length=256,label=_("Operator"),help_text=_('The ISP or operator providing the Internet service.'))
contract=forms.CharField(required=True,max_length=256,label=_("Contract"),help_text=_('The specific contract at the ISP provider. (please be as specific as possible)'))
media=forms.ChoiceField(required=True,choices=(('',''),)+tuple(sorted(MEDIA,key=itemgetter(1))),label=_('Is the Internet connection over mobile or fixed line?'))
country=forms.ChoiceField(required=False,choices=(('',''),)+tuple(sorted(COUNTRIES,key=itemgetter(1))),label=_("Country"),help_text=_('EU member state where the restriction is reported.'))
operator=forms.CharField(required=False,max_length=256,label=_("Operator"),help_text=_('The ISP or operator providing the Internet service.'))
contract=forms.CharField(required=False,max_length=256,label=_("Contract"),help_text=_('The specific contract at the ISP provider. (please be as specific as possible)'))
media=forms.ChoiceField(required=False,choices=(('',''),)+tuple(sorted(MEDIA,key=itemgetter(1))),label=_('Is the Internet connection over mobile or fixed line?'))
defsearch(self):
# By default, teh search field is q. So let's check if it's empty
# By default, the search field is q. So let's check if it's empty