change price type int -> decimal field
This commit is contained in:
@@ -31,7 +31,7 @@ class Expence(BaseModel):
|
||||
'orders.Party', on_delete=models.SET_NULL, null=True, blank=True, related_name='expences'
|
||||
)
|
||||
|
||||
price = models.PositiveBigIntegerField()
|
||||
price = models.DecimalField(max_digits=15, decimal_places=2, default=0.00)
|
||||
exchange_rate = models.PositiveBigIntegerField(default=0, null=True, blank=True)
|
||||
currency = models.CharField(
|
||||
max_length=3, choices=[('usd','usd'), ('uzs', 'uzs')]
|
||||
|
||||
Reference in New Issue
Block a user