aboutsummaryrefslogtreecommitdiff
path: root/rhodecode/model/forms.py
diff options
context:
space:
mode:
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 5642ffd0..45936303 100644
--- a/rhodecode/model/forms.py
+++ b/rhodecode/model/forms.py
@@ -184,7 +184,8 @@ def RepoForm(edit=False, old_data={}, supported_backends=BACKENDS.keys(),
v.SlugifyName())
repo_group = All(v.CanWriteGroup(old_data),
v.OneOf(repo_groups, hideList=True))
- repo_type = v.OneOf(supported_backends)
+ repo_type = v.OneOf(supported_backends, required=False,
+ if_missing=old_data.get('repo_type'))
repo_description = v.UnicodeString(strip=True, min=1, not_empty=False)
repo_private = v.StringBoolean(if_missing=False)
repo_landing_rev = v.OneOf(landing_revs, hideList=True)