Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
133e6649
authored
Feb 01, 2021
by
Máhonfai Bálint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make group instance and template instance limits editable on the form
parent
cbdce68f
Pipeline
#1392
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
circle/dashboard/forms.py
+4
-1
No files found.
circle/dashboard/forms.py
View file @
133e6649
...
...
@@ -271,6 +271,8 @@ class GroupProfileUpdateForm(NoFormTagMixin, forms.ModelForm):
if
not
new_groups
:
self
.
fields
[
'org_id'
]
.
widget
=
HiddenInput
()
self
.
fields
[
'disk_quota'
]
.
widget
=
HiddenInput
()
self
.
fields
[
'instance_limit'
]
.
widget
=
HiddenInput
()
self
.
fields
[
'template_instance_limit'
]
.
widget
=
HiddenInput
()
self
.
fields
[
'description'
]
.
widget
=
forms
.
Textarea
(
attrs
=
{
'rows'
:
3
})
@property
...
...
@@ -288,7 +290,8 @@ class GroupProfileUpdateForm(NoFormTagMixin, forms.ModelForm):
class
Meta
:
model
=
GroupProfile
fields
=
(
'description'
,
'org_id'
,
'disk_quota'
)
fields
=
(
'description'
,
'org_id'
,
'disk_quota'
,
'instance_limit'
,
'template_instance_limit'
)
class
HostForm
(
NoFormTagMixin
,
forms
.
ModelForm
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment