make purchase price a float

This commit is contained in:
2024-10-04 11:36:46 +02:00
parent 228fc2bf5f
commit 0759ad0804
5 changed files with 27 additions and 4 deletions

View File

@ -111,7 +111,7 @@ class Purchase(models.Model):
date_finished = models.DateField(blank=True, null=True)
date_dropped = models.DateField(blank=True, null=True)
infinite = models.BooleanField(default=False)
price = models.IntegerField(default=0)
price = models.FloatField(default=0)
price_currency = models.CharField(max_length=3, default="USD")
ownership_type = models.CharField(
max_length=2, choices=OWNERSHIP_TYPES, default=DIGITAL