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