Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
406a837a
authored
Apr 11, 2015
by
Bach Dániel
Committed by
Kálmán Viktor
May 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix EncodeError in VmCreate
parent
b8d4d226
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
circle/dashboard/views/vm.py
+3
-1
No files found.
circle/dashboard/views/vm.py
View file @
406a837a
...
@@ -1108,8 +1108,10 @@ class VmCreate(LoginRequiredMixin, TemplateView):
...
@@ -1108,8 +1108,10 @@ class VmCreate(LoginRequiredMixin, TemplateView):
return
self
.
__deploy
(
request
,
instances
)
return
self
.
__deploy
(
request
,
instances
)
def
__deploy
(
self
,
request
,
instances
,
*
args
,
**
kwargs
):
def
__deploy
(
self
,
request
,
instances
,
*
args
,
**
kwargs
):
# workaround EncodeError: dictionary changed size during iteration
user
=
User
.
objects
.
get
(
pk
=
request
.
user
.
pk
)
for
i
in
instances
:
for
i
in
instances
:
i
.
deploy
.
async
(
user
=
request
.
user
)
i
.
deploy
.
async
(
user
=
user
)
if
len
(
instances
)
>
1
:
if
len
(
instances
)
>
1
:
messages
.
success
(
request
,
ungettext_lazy
(
messages
.
success
(
request
,
ungettext_lazy
(
...
...
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