From 21c2fdb4b026636693c8a122635892c411ebfe0a Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 12 Aug 2010 16:19:39 +0200 Subject: [PATCH] fix document create form validation --- apps/wiki/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.20.1