Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. class Bank(models.Model):
  2. # ...
  3. payout = models.DecimalField(
  4. _('payout'),
  5. max_digits=8,
  6. decimal_places=2,
  7. default=0.00
  8. )
  9. # ...
  10.  
  11. bank = Bank.objects.get(user=request.user)
  12. payout = bank.payout
  13.  
  14. TypeError at /cabinet/payout/
  15. Decimal('18.92') is not JSON serializable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement