# HG changeset patch # User Marcin Kuzminski # Date 2013-06-05 17:12:16 # Node ID 3301fb05b49430282d51dcd67cce6473ab7a88c9 # Parent d56f8619c280fee927cd26ca9501fa7a07bf1f6f Improve validation on dashboard items field diff --git a/rhodecode/model/forms.py b/rhodecode/model/forms.py --- a/rhodecode/model/forms.py +++ b/rhodecode/model/forms.py @@ -285,7 +285,7 @@ def ApplicationVisualisationForm(): 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