mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-21 20:54:49 +03:00
* 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>
29 lines
889 B
Python
29 lines
889 B
Python
r"""
|
|
______ _____ _____ _____ __
|
|
| ___ \ ___/ ___|_ _| / _| | |
|
|
| |_/ / |__ \ `--. | | | |_ _ __ __ _ _ __ ___ _____ _____ _ __| |__
|
|
| /| __| `--. \ | | | _| '__/ _` | '_ ` _ \ / _ \ \ /\ / / _ \| '__| |/ /
|
|
| |\ \| |___/\__/ / | | | | | | | (_| | | | | | | __/\ V V / (_) | | | <
|
|
\_| \_\____/\____/ \_/ |_| |_| \__,_|_| |_| |_|\___| \_/\_/ \___/|_| |_|\_|
|
|
"""
|
|
|
|
__title__ = 'Django REST framework'
|
|
__version__ = '3.16.1'
|
|
__author__ = 'Tom Christie'
|
|
__license__ = 'BSD 3-Clause'
|
|
__copyright__ = 'Copyright 2011-2023 Encode OSS Ltd'
|
|
|
|
# Version synonym
|
|
VERSION = __version__
|
|
|
|
# Header encoding (see RFC5987)
|
|
HTTP_HEADER_ENCODING = 'iso-8859-1'
|
|
|
|
# Default datetime input and output formats
|
|
ISO_8601 = 'iso-8601'
|
|
DJANGO_DURATION_FORMAT = 'django'
|
|
|
|
|
|
class RemovedInDRF317Warning(PendingDeprecationWarning):
|
|
pass
|