Good day and a happy easter-weekdend,
in Django I'm trying calculate inside my "models.py" with the amounts of multiple TimeField. For example:
class Times(models.Model):
...
time_from = model.TimeField()
time_to = model.TimeField()
time_break = model.TimeField(default='00:00:00')
time_all = ...
...
Let's say my times look like...
- time_from: 08:00:00
- time_to: 14:30:00
- time_break: 00:30:00
... I want to achieve the time of "06:00:00" inside my variable "time_all"
Does anyone have an idea?
Thanks!