summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index f64d33c..0d80cc7 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -1015,6 +1015,8 @@ def action_clients_import_get():
for room in rooms if room['id'] == int(selected_room_id)]
form.room.choices = selected_room
form.room.render_kw = {'readonly': True}
+ repositories = get_repositories(server)
+ form.repo.choices = [(repo["id"], repo["name"]) for repo in repositories]
form.dhcpd_conf.render_kw = {'placeholder': PLACEHOLDER_TEXT}
scopes, _clients = get_scopes()
@@ -1056,6 +1058,7 @@ def action_clients_import_post():
'netiface': OG_CLIENT_DEFAULT_NETIFACE,
'netmask': "0",
'remote': OG_CLIENT_DEFAULT_REMOTE,
+ "repo_id": int(form.repo.data),
'room': int(form.room.data)}
for client in clients:
payload['name'] = client[0]