summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ogcp/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index a10c9c4..edf61dd 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -1269,9 +1269,7 @@ def action_image_create():
repositories = get_repositories(server)
form.repository.choices = [ (repo['id'], repo['name']) for repo in repositories
if client_repo_id == repo['id']]
- for repo in repositories:
- if client_repo_id != repo['id']:
- form.repository.choices.append((repo['id'], repo['name']))
+ form.repository.render_kw = {'readonly': True}
scopes, clients = get_scopes(set(ips))
return render_template('actions/image_create.html', form=form,