Esempio n. 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)
Esempio n. 2
0
 def save(self, *args, **kwargs):
     validators.isNotNegative(self.amount, self)
     validators.isValidOrderNumber(self.order_num, self)
     return super(Order, self).save(*args, **kwargs)
Esempio n. 3
0
 def save(self, *args, **kwargs):
   validators.isValidOrderNumber(self.code, self)
   return super(Coupon, self).save(*args, **kwargs)
Esempio n. 4
0
 def save(self, *args, **kwargs):
     validators.isValidOrderNumber(self.code, self)
     return super(Coupon, self).save(*args, **kwargs)