django-rest-framework icon indicating copy to clipboard operation
django-rest-framework copied to clipboard

DurationField output format

Open sevdog opened this issue 3 years ago • 10 comments

Description

As explained in #8527 this PR will provide the ability to choose the output format for DurationFields.

Since Python builtim timedelta object does not have any format function we are going to allow only formats which are already defined in Django codebase in the package django.utils.duration:

  • duration_string
  • duration_iso_string

sevdog avatar Jun 24 '22 09:06 sevdog

Thanks - good to talk this through from a docs-first perspective.

lovelydinosaur avatar Jun 24 '22 10:06 lovelydinosaur

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 16 '22 13:10 stale[bot]