Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
52a7dc2a
authored
Jul 31, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: better amount validation
parent
2e041956
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
+1
-7
circle/dashboard/forms.py
+1
-7
No files found.
circle/dashboard/forms.py
View file @
52a7dc2a
...
...
@@ -116,7 +116,7 @@ class VmCustomizeForm(forms.Form):
'min'
:
"1"
,
'style'
:
"max-width: 60px"
,
'required'
:
""
,
}),
initial
=
1
)
}),
initial
=
1
,
min_value
=
1
)
disks
=
forms
.
ModelMultipleChoiceField
(
queryset
=
None
,
required
=
False
,
...
...
@@ -136,12 +136,6 @@ class VmCustomizeForm(forms.Form):
template
=
forms
.
CharField
(
widget
=
forms
.
HiddenInput
())
customized
=
forms
.
CharField
(
widget
=
forms
.
HiddenInput
())
def
clean_amount
(
self
):
data
=
self
.
cleaned_data
[
'amount'
]
if
data
<
1
:
data
=
1
return
data
def
__init__
(
self
,
*
args
,
**
kwargs
):
self
.
user
=
kwargs
.
pop
(
"user"
,
None
)
self
.
template
=
kwargs
.
pop
(
"template"
,
None
)
...
...
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