X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=filex%2Fforms.py;h=e4d0c9e9652b3d826527dd545b198d48a80c373c;hb=bdb58f6531db56a7c150082e1d105bbaa3d76538;hp=e9b866f5e31dca387bd9b9477c80fcdd22fe26c9;hpb=dee5b1cbf07c44e308dbccea2e49bb484eb6f2f5;p=qcg-portal.git diff --git a/filex/forms.py b/filex/forms.py index e9b866f..e4d0c9e 100644 --- a/filex/forms.py +++ b/filex/forms.py @@ -3,21 +3,9 @@ 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,}(?