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
deb02ed6
authored
Jul 31, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: use form features for data
parent
ececb093
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
circle/dashboard/views.py
+2
-8
No files found.
circle/dashboard/views.py
View file @
deb02ed6
...
@@ -784,14 +784,8 @@ class VmResourcesChangeView(VmOperationView):
...
@@ -784,14 +784,8 @@ class VmResourcesChangeView(VmOperationView):
else
:
else
:
return
redirect
(
instance
.
get_absolute_url
()
+
"#resources"
)
return
redirect
(
instance
.
get_absolute_url
()
+
"#resources"
)
else
:
else
:
resources
=
{
extra
=
form
.
cleaned_data
'num_cores'
:
"num_cores"
,
extra
[
'max_ram_size'
]
=
extra
[
'ram_size'
]
'priority'
:
"priority"
,
'ram_size'
:
"ram_size"
,
'max_ram_size'
:
"ram_size"
,
# TODO
}
for
k
,
v
in
resources
.
iteritems
():
extra
[
k
]
=
request
.
POST
.
get
(
v
)
return
super
(
VmResourcesChangeView
,
self
)
.
post
(
request
,
extra
,
return
super
(
VmResourcesChangeView
,
self
)
.
post
(
request
,
extra
,
*
args
,
**
kwargs
)
*
args
,
**
kwargs
)
...
...
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