resource_name=forms.CharField(required=True,max_length=4096,label=_('Please describe the discrimination'),help_text=_("What service or site, or person is unavailable or seems artificially slowed down. e.g. VoIP, p2p, filesharing, specific websites, etc."))
country=forms.ChoiceField(required=True,choices=(('',''),)+tuple(sorted(COUNTRIES,key=itemgetter(1))),label=_("Country"),help_text=_('EU member state where the discrimination is reported.'))
...
...
@@ -67,5 +70,6 @@ class SearchViolation(SearchForm):
returnsqs
classQuickSearchViolation(forms.Form):
query=forms.CharField(required='True',max_length=256,label=_("Search"),help_text=_('Search for an existing violation'))
messages.add_message(request,messages.INFO,_('Thank you for verifying your submission. It will be listed shortly, after we\'ve checked that the report is valid.').encode("Utf-8"))
returnHttpResponseRedirect('/')# Redirect after POST