Closed fruitoiz closed 3 months ago
await Wallet.filter(user_id=101).update(balance=Wallet.balance+1) ^^^^^^^^^^^^^^^^^^ AttributeError: type object 'Wallet' has no attribute 'balance'
how to do this?
class Wallet(Model): user_id = fields.BigIntField() balance = fields.DecimalField(max_digits=10, decimal_places=10, default=0)
balance=F('balance') - 10
Нашел ответ
how to do this?