Make it possible to drop purchases, or consider them infinite
Some checks failed
Django CI/CD / build-and-push (push) Blocked by required conditions
Django CI/CD / test (push) Has been cancelled

This commit is contained in:
2024-01-03 22:35:39 +01:00
parent 0cdfd3c298
commit 242833f886
5 changed files with 60 additions and 4 deletions

View File

@ -116,6 +116,8 @@ class Purchase(models.Model):
date_purchased = models.DateField()
date_refunded = models.DateField(blank=True, null=True)
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_currency = models.CharField(max_length=3, default="USD")
ownership_type = models.CharField(