Commits

Konstantinos Metaxas committed 6ea1448

removed clean_site() because URLField already does everytning it did, and properly.

  • Participants
  • Parent commits 9137bac

Comments (0)

Files changed (1)

File apps/discussion/forms.py

 
         super(AnonymousCommentForm, self).__init__(*args, **kwargs)
 
-    def clean_site(self):
-        url = self.cleaned_data['site']
-        if url:
-            if not (url.startswith('http://') or url.startswith('https://')):
-                url = 'http://%s' % url
-            if not forms.fields.url_re.search(url):
-                raise forms.ValidationError(u'Please ensure your URL is a full web address (eg: http://google.com/)')
-            return url
-
     def save(self):
         try:
             self.user = User.objects.get(email=self.cleaned_data['email'])