Mercurial > kallithea
changeset 3949:3301fb05b494 beta
Improve validation on dashboard items field
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 05 Jun 2013 19:12:16 +0200 |
parents | d56f8619c280 |
children | 1226fdf24f8a |
files | rhodecode/model/forms.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/model/forms.py Tue Jun 04 17:46:16 2013 +0200 +++ b/rhodecode/model/forms.py Wed Jun 05 19:12:16 2013 +0200 @@ -285,7 +285,7 @@ rhodecode_repository_fields = v.StringBoolean(if_missing=False) rhodecode_lightweight_journal = v.StringBoolean(if_missing=False) - rhodecode_dashboard_items = v.UnicodeString() + rhodecode_dashboard_items = v.Int(min=5, not_empty=True) rhodecode_show_version = v.StringBoolean(if_missing=False) return _ApplicationVisualisationForm