Obtenha horas do DateTime.timedelta em Python (Django)
def days_hours_minutes(td):
return td.days, td.seconds//3600, (td.seconds//60)%60
Yucky Yak
def days_hours_minutes(td):
return td.days, td.seconds//3600, (td.seconds//60)%60