summaryrefslogtreecommitdiffstats
path: root/ogcp/forms
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2023-11-29 10:06:40 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2023-11-29 10:43:02 +0100
commit4a70bc174c6cf73bf21f0bd72ac54c4a6da4d0bb (patch)
tree589398a0e3ed46bb9d47ec6030d59d11524873b9 /ogcp/forms
parentad41a0dfbeaa5b07ea454050af837de2d42d4bcd (diff)
views: populate repositories in client form
Make, in add and edit clients forms, the field repository show the list with the actual repositories, not a harcoded value.
Diffstat (limited to 'ogcp/forms')
-rw-r--r--ogcp/forms/action_forms.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py
index dfb1572..6f3f4b9 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -112,8 +112,7 @@ class ClientDetailsForm(FlaskForm):
choices=[('eth0', 'eth0'),
('eth1', 'eth1'),
('eth2', 'eth2')])
- repo = SelectField(label=_l('Repository'),
- choices=[(1, 'Default')])
+ repo = SelectField(label=_l('Repository'))
room = SelectField(label=_l('Room'))
boot = SelectField(label=_l('Boot Mode'))
create = SubmitField(label=_l('Create'))