fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tiff2png
[redakcja.git]
/
apps
/
wiki
/
forms.py
diff --git
a/apps/wiki/forms.py
b/apps/wiki/forms.py
index
0a5be8c
..
e48c5ea
100644
(file)
--- 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()
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)