From: Radek Czajka Date: Wed, 15 Sep 2010 08:11:24 +0000 (+0200) Subject: allow dash in create form X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/c24bf5fa92daf6b6f2b2d2c31113e387b5025841 allow dash in create form --- 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)