django-rest-framework/docs/api-guide
Devid c8b6d3dcdf
DurationField output format (#8532)
* Allow format duration as ISO-8601

* Update tests/test_fields.py

Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>

* Update tests/test_fields.py

Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>

* Add validation for DurationField format, add more tests for it and improve related docs

* Add more precise validation check for duration field format and adjust docs

* Adjust typo in duration field docs

---------

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2025-08-12 16:21:01 +02:00
..
authentication.md Add django-pyoidc as a third party authentication library (#9667) 2025-03-25 20:09:42 +00:00
caching.md Update Django documentation links to use stable version (#9698) 2025-05-13 15:10:21 +01:00
content-negotiation.md Docs: Convert all tabs into spaces (#8692) 2022-10-12 11:23:45 +01:00
exceptions.md Update Django documentation links to use stable version (#9698) 2025-05-13 15:10:21 +01:00
fields.md DurationField output format (#8532) 2025-08-12 16:21:01 +02:00
filtering.md Update Django documentation links to use stable version (#9698) 2025-05-13 15:10:21 +01:00
format-suffixes.md Improve style, fix some typos (#8405) 2022-10-19 11:20:11 +01:00
generic-views.md Update Django documentation links to use stable version (#9698) 2025-05-13 15:10:21 +01:00
metadata.md Fix schema endpoint example (#7178) 2020-05-05 14:04:35 +01:00
pagination.md minor documentation improvements and fixes (#8903) 2023-03-14 13:31:34 +00:00
parsers.md minor documentation improvements and fixes (#8903) 2023-03-14 13:31:34 +00:00
permissions.md Revert docs back to djangorestframework-guardian (#9734) 2025-07-06 15:39:52 +01:00
relations.md Update relations.md (#9063) 2025-02-26 06:11:09 +00:00
renderers.md Fix typo in renderers documentation (#9616) 2025-01-07 19:19:39 +00:00
requests.md Improve style, fix some typos (#8405) 2022-10-19 11:20:11 +01:00
responses.md Fix link to Django docs (#7040) 2019-11-06 09:34:28 -08:00
reverse.md Fix Links in Documentation to Django reverse and reverse_lazy (#8986) 2023-05-17 11:46:48 +06:00
routers.md Update Django documentation links to use stable version (#9698) 2025-05-13 15:10:21 +01:00
schemas.md Fix a number of broken links in the docs (#9758) 2025-08-09 20:20:07 +06:00
serializers.md add a new third-party package in serializers.md (#9717) 2025-08-10 10:12:11 +06:00
settings.md DurationField output format (#8532) 2025-08-12 16:21:01 +02:00
status-codes.md Added http 102, 103, 421, and 425 status codes in documentation (#8763) 2022-11-17 13:13:09 +00:00
testing.md support django 2.1 test client json data automatically serialized (#6511) 2024-12-28 16:22:21 +06:00
throttling.md Restore references to GitHub Issues and Discussions (#9757) 2025-08-09 12:44:46 +06:00
validators.md Restore references to GitHub Issues and Discussions (#9757) 2025-08-09 12:44:46 +06:00
versioning.md Updated url() with re_path() in Versioning docs. (#7043) 2019-11-07 13:20:56 +01:00
views.md Improve style, fix some typos (#8405) 2022-10-19 11:20:11 +01:00
viewsets.md Add note in 'Introspecting ViewSet actions' docs section (#9633) 2025-01-29 11:51:38 +06:00