[Answered ]-AttributeError: 'str' object has no attribute 'days'

1👍

convert all your times field to timedelta by parse_duration() method

eg:

from django.utils.dateparse import parse_duration
product.normal_dryclean_buffer_time = parse_duation(request.POST.get('dryclean_buffer'))

do it for all fields.

Leave a comment