[Fixed]-TypeError: %d format: a number is required, not datetime.timedelta

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
})

Leave a comment