Commit 266db2a5 by Guba Sándor

dashboard: casting int to inputs

parent 67f0c17d
...@@ -133,9 +133,9 @@ class VmCreate(TemplateView): ...@@ -133,9 +133,9 @@ class VmCreate(TemplateView):
resp = {} resp = {}
try: try:
ikwargs = { ikwargs = {
'num_cores': request.POST.get('cpu-count'), 'num_cores': int(request.POST.get('cpu-count')),
'ram_size': request.POST.get('ram-size'), 'ram_size': int(request.POST.get('ram-size')),
'priority': request.POST.get('cpu-priority'), 'priority': int(request.POST.get('cpu-priority')),
'disks': Disk.objects.filter( 'disks': Disk.objects.filter(
pk__in=request.POST.getlist('disks')) pk__in=request.POST.getlist('disks'))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment