I have a Django model with a field for price:
class Book(models.Model):
title = models.CharField(max_length=200)
price = models.FloatField(null=True, blank=True)
The issue is that my users might enter a price as 245 or as 245.00, and I want the system to be able to handle either.
Can I do something clever to allow this?
float(245)
is245.00
...