Merge migrations and fix spacing

This commit is contained in:
Modulos 2017-05-07 16:09:41 +02:00
parent 4ab8963149
commit c2a76e6c39
2 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2017-05-07 04:49
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('hosting', '0031_hostingbill_total_price'),
('hosting', '0036_auto_20170506_2312'),
]
operations = [
]

View File

@ -4,6 +4,7 @@ import oca
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.functional import cached_property
from django.conf import settings
from Crypto.PublicKey import RSA
from stored_messages.settings import stored_messages_settings
@ -293,7 +294,7 @@ class HostingBill(AssignPermissionsMixin, models.Model):
# Reset total price
self.total_price = 0
vms = []
vms = []
# Add vm in vm_pool to context
for vm in vm_pool:
name = vm.name
@ -319,6 +320,6 @@ class HostingBill(AssignPermissionsMixin, models.Model):
self.total_price += price
self.save()
return vms
return vms