add note size limitation
authorraph
Mon, 04 Oct 2010 14:21:17 +0200
changeset 312 731664a49992
parent 311 459e30951aa2
child 313 dcbb54cbfd06
add note size limitation
src/cm/views/texts.py
--- a/src/cm/views/texts.py	Wed Sep 29 14:43:40 2010 +0200
+++ b/src/cm/views/texts.py	Mon Oct 04 14:21:17 2010 +0200
@@ -634,6 +634,7 @@
     note = forms.CharField(label=ugettext_lazy("Note (optional)"),
                            widget=forms.TextInput,
                            required=False,
+                           max_length=100,
                            help_text=ugettext_lazy("Add a note to explain the modifications made to the text")
                            )