a guest May 24th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- coupon_types = (
- ('percent','Precent Discount'),
- ('price', 'Price Discount'),
- class MyModel(models.Model):
- color = models.CharField(max_length=10, choices=coupon_type, default='percent')
RAW Paste Data