1👍
✅
Formatter expects an integer whereas you pass a timedelta
instance instead. You can convert it to seconds and then divide it by 60:
...
'minutes': settings.LOANWOLF_FAX_GRACE_TIME.seconds // 60
})
Source:stackexchange.com