Advertisement
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')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement