def save(self, *args, **kwargs): validators.isNotNegative(self.amount, self) validators.isValidOrderNumber(self.order_num, self) return super(Order, self).save(*args, **kwargs)
def save(self, *args, **kwargs): validators.isAllCapsDigits(self.name, self) validators.isNotNegative(self.price, self) return super(Item, self).save(*args, **kwargs)
def save(self, *args, **kwargs): validators.isAllCapsDigits(self.name, self) validators.isNotNegative(self.price, self) validators.isValidStartStopDates(self.start_date, self) return super(Ticket, self).save(*args, **kwargs)