SHARE
TWEET

Untitled

a guest May 24th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. coupon_types = (
  2.     ('percent','Precent Discount'),
  3.     ('price', 'Price Discount'),
  4. )
  5.  
  6. class MyModel(models.Model):
  7.   color = models.CharField(max_length=10, choices=coupon_type, default='percent')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top