X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=filex%2Fforms.py;h=4f7c8ddc7d7412ab489af324e621e8fdfa483b6c;hb=5e547a8cc20ef2bd450b3b839564e56e99099cee;hp=17563b562979fa7c110fb4aef0763e975d49133b;hpb=a31bfa1533510afcdef6f8597cc6867bb8e5a402;p=qcg-portal.git diff --git a/filex/forms.py b/filex/forms.py index 17563b5..4f7c8dd 100644 --- a/filex/forms.py +++ b/filex/forms.py @@ -3,17 +3,10 @@ import os from django import forms from django.core.exceptions import ValidationError -from django.core.validators import RegexValidator from django.utils.http import urlquote from filex.models import Favorite - - -msg = u'Invalid value' -host_validator = RegexValidator(r'^(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+' - r'(?:[a-zA-Z]{2,6}\.?|[a-zA-Z0-9-]{2,}(?