I have a Django model with a field for the price:
class Book(models.Model): title = models.CharField(max_length=200) price = models.FloatField(null=True, blank=True)
The problem is that my users can enter the price as 245 or 245.00, and I want the system to be able to handle it.
Can I do something smart to solve this?
AP257 source share