diff rhodecode/model/forms.py @ 1363:923d2f699bd7 beta

fixed issue with adding new group. template typo fix for empty group
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 05 Jun 2011 02:09:27 +0200
parents 87ca17540603
children b6cac385cef0
line wrap: on
line diff
--- a/rhodecode/model/forms.py	Sat Jun 04 22:59:05 2011 +0200
+++ b/rhodecode/model/forms.py	Sun Jun 05 02:09:27 2011 +0200
@@ -127,8 +127,9 @@
             # 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,