aboutsummaryrefslogtreecommitdiff
path: root/rhodecode/model/forms.py
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2011-06-05 02:09:27 +0200
committerMarcin Kuzminski <marcin@python-works.com>2011-06-05 02:09:27 +0200
commit9d42e32744ec81f8973af8f763099039d26c523f (patch)
treee4d4d06184fce3ff9f435a50c909107d70e317ec /rhodecode/model/forms.py
parentd2153ad04e00a225aa2a6c087f173f7c28eab08f (diff)
fixed issue with adding new group. template typo fix for empty group
--HG-- branch : beta
Diffstat (limited to 'rhodecode/model/forms.py')
-rw-r--r--rhodecode/model/forms.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rhodecode/model/forms.py b/rhodecode/model/forms.py
index 103f9758..6a538d04 100644
--- a/rhodecode/model/forms.py
+++ b/rhodecode/model/forms.py
@@ -127,8 +127,9 @@ def ValidReposGroup(edit, old_data):
# slugify repo group just in case :)
slug = repo_name_slug(group_name)
+ print old_data
# check for parent of self
- if old_data['group_id'] == group_parent_id:
+ if edit and old_data['group_id'] == group_parent_id:
e_dict = {'group_parent_id':_('Cannot assign this group '
'as parent')}
raise formencode.Invalid('', value, state,