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?ds=sidebyside;hp=--cc fix document create form validation --- 21c2fdb4b026636693c8a122635892c411ebfe0a 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)