Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion create/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from vrtManager import util
from create.forms import FlavorAddForm, NewVMForm

from collections import OrderedDict

def create(request, host_id):
"""
Expand Down Expand Up @@ -84,7 +85,7 @@ def create(request, host_id):
except libvirtError as err:
errors.append(err.message)
if 'create' in request.POST:
volumes = {}
volumes = OrderedDict()
form = NewVMForm(request.POST)
if form.is_valid():
data = form.cleaned_data
Expand Down
2 changes: 1 addition & 1 deletion webvirtmgr/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/var/www/example.com/static/"
STATIC_ROOT = os.path.join(os.path.dirname(__file__), '..', 'static')
STATIC_ROOT = os.path.join(os.path.dirname(__file__), 'static')

# URL prefix for static files.
# Example: "http://example.com/static/", "http://static.example.com/"
Expand Down