From 26e8cca3b33d56ab7317803a6dbd3105189f2e8b Mon Sep 17 00:00:00 2001 From: David Cramer Date: Thu, 30 Aug 2012 21:41:45 -0700 Subject: [PATCH] Ensure we dont error out when a team already exists --- src/sentry/web/frontend/projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentry/web/frontend/projects.py b/src/sentry/web/frontend/projects.py index 59fefc79be4e7c..d421114811b240 100644 --- a/src/sentry/web/frontend/projects.py +++ b/src/sentry/web/frontend/projects.py @@ -81,7 +81,7 @@ def new_project(request): project_form = project_form_cls(request.POST or None, initial=project_initial, prefix='prj') is_new_team = new_team_form and new_team_form.is_valid() - if is_new_team: + if is_new_team or not select_team_form: team_form = new_team_form else: team_form = select_team_form