Exemplo 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)
Exemplo 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)
Exemplo n.º 3
0
 def save(self, *args, **kwargs):
   validators.isValidOrderNumber(self.code, self)
   return super(Coupon, self).save(*args, **kwargs)
Exemplo n.º 4
0
 def save(self, *args, **kwargs):
     validators.isValidOrderNumber(self.code, self)
     return super(Coupon, self).save(*args, **kwargs)