Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)