Item.tax_rate should not be nullable

This commit is contained in:
Raphael Michel
2016-02-11 18:19:20 +01:00
parent febf352159
commit 640fc5f230
2 changed files with 25 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
import sys
from datetime import datetime
from decimal import Decimal
from django.db import models
from django.db.models import Q, Case, Count, Sum, When
@@ -132,9 +133,9 @@ class Item(LoggedModel):
max_digits=7, decimal_places=2, null=True
)
tax_rate = models.DecimalField(
null=True, blank=True,
verbose_name=_("Taxes included in percent"),
max_digits=7, decimal_places=2
max_digits=7, decimal_places=2,
default=Decimal('0.00')
)
admission = models.BooleanField(
verbose_name=_("Is an admission ticket"),