Hi all, pretty simple question but I seem to be stuck.
Let us say I have created a few models in Django and I ended up creating a decimal field that looks something like this. Check it out:
price = models.DecimalField(_(u'Price'), decimal_places=2, max_digits=12)
We already know that price cannot be negative or in fact, it cannot be zero either. So, my question is simple. Is there any way which I can make use of to limit the number to make sure it is only positive?
Is it that or would I have to consider making use of form validation to obtain this?
All help appreciated!