From c24bf5fa92daf6b6f2b2d2c31113e387b5025841 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 15 Sep 2010 10:11:24 +0200 Subject: [PATCH] allow dash in create form --- 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 e48c5eae..d5c0ed54 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