Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Bank(models.Model):
- # ...
- payout = models.DecimalField(
- _('payout'),
- max_digits=8,
- decimal_places=2,
- default=0.00
- )
- # ...
- bank = Bank.objects.get(user=request.user)
- payout = bank.payout
- TypeError at /cabinet/payout/
- Decimal('18.92') is not JSON serializable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement