Working rigboard. Thank fuck...

This commit is contained in:
tomtom5152
2014-11-06 03:32:36 +00:00
parent 3f5cc920cb
commit c62c41b06f
5 changed files with 142 additions and 2 deletions

View File

@@ -209,6 +209,14 @@ class Event(models.Model, RevisionMixin):
def total(self):
return self.sum_total + self.vat
@property
def cancelled(self):
return (self.status == self.CANCELLED)
@property
def confirmed(self):
return (self.status == self.BOOKED or self.status == self.CONFIRMED)
objects = EventManager()
def __str__(self):