Esempio n. 1
0
 def save(self, *args, **kwargs):
   validators.isAllCapsDigits(self.name, self)
   validators.isNotNegative(self.price, self)
   return super(Item, self).save(*args, **kwargs)
Esempio n. 2
0
 def save(self, *args, **kwargs):
   validators.isAllCapsDigits(self.name, self)
   validators.isPositive(self.price_modifier, self)
   validators.isValidStartStopDates(self.start_date, self)
   return super(PromoCode, self).save(*args, **kwargs)
Esempio n. 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)
Esempio n. 4
0
 def save(self, *args, **kwargs):
     validators.isAllCapsDigits(self.name, self)
     validators.isNotNegative(self.price, self)
     return super(Item, self).save(*args, **kwargs)
Esempio n. 5
0
 def save(self, *args, **kwargs):
     validators.isAllCapsDigits(self.name, self)
     validators.isPositive(self.price_modifier, self)
     validators.isValidStartStopDates(self.start_date, self)
     return super(PromoCode, self).save(*args, **kwargs)
Esempio n. 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)