make Refilling.payment_method a SmallIntegerField

This commit is contained in:
imperosol
2025-11-19 20:49:06 +01:00
parent ad87617018
commit c588e5117d
9 changed files with 69 additions and 25 deletions

View File

@@ -253,7 +253,7 @@ class Invoice(models.Model):
customer=customer,
operator=self.user,
amount=i.product_unit_price * i.quantity,
payment_method="CARD",
payment_method=Refilling.PaymentMethod.CARD,
date=self.date,
)
new.save()