Added default value to Invoice.void (False)

This commit is contained in:
tomtom5152
2015-01-30 00:16:29 +00:00
parent 2ce45b9297
commit a0e3f6bfc1

View File

@@ -317,7 +317,7 @@ class EventCrew(models.Model):
class Invoice(models.Model): class Invoice(models.Model):
event = models.OneToOneField('Event') event = models.OneToOneField('Event')
invoice_date = models.DateField(auto_now_add=True) invoice_date = models.DateField(auto_now_add=True)
void = models.BooleanField() void = models.BooleanField(default=False)
@property @property
def sum_total(self): def sum_total(self):