KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Within my Django models I have created a decimal field like this: price = models.DecimalField(_(u'Price'), decimal_places=2, max_digits=12) Obviously it makes no sense for the price to be negative or zero. Is there a way to limit the decimal number to only positive numbers? Or do I have to capture this using form validation?
Tags (comma-separated)
Save Edits
Cancel