shanirub / ecommerce

An E-commerce System Inspired by the Super Mario Universe
MIT License
2 stars 0 forks source link

Product price should accept float/Decimal/str #16

Open shanirub opened 4 months ago

shanirub commented 4 months ago

price field in Product model is defined as price = models.DecimalField(max_digits=10, decimal_places=2, validators=[MinValueValidator(0)])

currently works only with Decimal objects for assignment and comparison.