Example #1
0
 def save(self, *args, **kwargs):
   validators.isNotNegative(self.amount, self)
   validators.isValidOrderNumber(self.order_num, self)
   return super(Order, self).save(*args, **kwargs)
Example #2
0
 def save(self, *args, **kwargs):
   validators.isAllCapsDigits(self.name, self)
   validators.isNotNegative(self.price, self)
   return super(Item, self).save(*args, **kwargs)
Example #3
0
 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)
Example #4
0
 def save(self, *args, **kwargs):
     validators.isNotNegative(self.amount, self)
     validators.isValidOrderNumber(self.order_num, self)
     return super(Order, self).save(*args, **kwargs)
Example #5
0
 def save(self, *args, **kwargs):
     validators.isAllCapsDigits(self.name, self)
     validators.isNotNegative(self.price, self)
     return super(Item, self).save(*args, **kwargs)
Example #6
0
 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)