Update models.py

posgresql выдает ошибку

ProgrammingError at /
operator does not exist: boolean = integer
LINE 2: ...WHERE ba.wallet_id=10 AND ba.migrated_to_transactions=0), 0)

migrated_to_transactions - booleanfield