Increase decimal_places for all VMPricing fields
This commit is contained in:
parent
069ba34f94
commit
6575ff1afe
1 changed files with 5 additions and 5 deletions
|
@ -20,19 +20,19 @@ class VMPricing(models.Model):
|
||||||
name = models.CharField(max_length=255, unique=True)
|
name = models.CharField(max_length=255, unique=True)
|
||||||
vat_inclusive = models.BooleanField(default=True)
|
vat_inclusive = models.BooleanField(default=True)
|
||||||
vat_percentage = models.DecimalField(
|
vat_percentage = models.DecimalField(
|
||||||
max_digits=7, decimal_places=2, blank=True, default=0
|
max_digits=7, decimal_places=5, blank=True, default=0
|
||||||
)
|
)
|
||||||
cores_unit_price = models.DecimalField(
|
cores_unit_price = models.DecimalField(
|
||||||
max_digits=7, decimal_places=2, default=0
|
max_digits=7, decimal_places=5, default=0
|
||||||
)
|
)
|
||||||
ram_unit_price = models.DecimalField(
|
ram_unit_price = models.DecimalField(
|
||||||
max_digits=7, decimal_places=2, default=0
|
max_digits=7, decimal_places=5, default=0
|
||||||
)
|
)
|
||||||
ssd_unit_price = models.DecimalField(
|
ssd_unit_price = models.DecimalField(
|
||||||
max_digits=7, decimal_places=2, default=0
|
max_digits=7, decimal_places=5, default=0
|
||||||
)
|
)
|
||||||
hdd_unit_price = models.DecimalField(
|
hdd_unit_price = models.DecimalField(
|
||||||
max_digits=7, decimal_places=2, default=0
|
max_digits=7, decimal_places=6, default=0
|
||||||
)
|
)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
Loading…
Reference in a new issue