Commit 406a837a by Bach Dániel Committed by Kálmán Viktor

dashboard: fix EncodeError in VmCreate

parent b8d4d226
......@@ -1108,8 +1108,10 @@ class VmCreate(LoginRequiredMixin, TemplateView):
return self.__deploy(request, instances)
def __deploy(self, request, instances, *args, **kwargs):
# workaround EncodeError: dictionary changed size during iteration
user = User.objects.get(
for i in instances:
if len(instances) > 1:
messages.success(request, ungettext_lazy(
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