Ticket 818: better 'save' button styling.
[redakcja.git] / apps / wiki / forms.py
index e48c5ea..d5c0ed5 100644 (file)
@@ -23,7 +23,7 @@ class DocumentCreateForm(forms.Form):
         Form used for creating new documents.
     """
     title = forms.CharField()
         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)
 
     file = forms.FileField(required=False)
     text = forms.CharField(required=False, widget=forms.Textarea)