From: Radek Czajka Date: Thu, 12 Aug 2010 14:19:39 +0000 (+0200) Subject: fix document create form validation X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/21c2fdb4b026636693c8a122635892c411ebfe0a?hp=d1dab81096ebff8faa7e9250637244c52fcac346 fix document create form validation --- diff --git a/apps/wiki/forms.py b/apps/wiki/forms.py index 0a5be8ca..e48c5eae 100644 --- a/apps/wiki/forms.py +++ b/apps/wiki/forms.py @@ -23,7 +23,7 @@ class DocumentCreateForm(forms.Form): Form used for creating new documents. """ title = forms.CharField() - id = forms.RegexField(regex=ur"\w+") + id = forms.RegexField(regex=ur"^[\wąćęłńóśźżĄĆĘŁŃÓŚŹŻ]+$") file = forms.FileField(required=False) text = forms.CharField(required=False, widget=forms.Textarea)