django-rest-framework/rest_framework/utils
rizwanshaikh 9cfa4bd7cc
Fix OpenAPI Schema yaml rendering for timedelta (#9007)
* fix OpenAPIRenderer for timedelta

* added test for rendering openapi with timedelta

* fix OpenAPIRenderer for timedelta

* added test for rendering openapi with timedelta

* Removed usage of field.choices that triggered full table load (#8950)

Removed the `{{ field.choices|yesno:",disabled" }}` block because this triggers the loading of full database table worth of objects just to determine whether the multi-select widget should be set as disabled or not.

Since this "disabled" marking feature is not present in the normal select field, then I propose to remove it also from the multi-select.

* Added Deprecation Warnings for CoreAPI (#7519)

* Added Deprecation Warnings for CoreAPI

* Bumped removal to DRF315

* Update rest_framework/__init__.py

* Update rest_framework/filters.py

* Update rest_framework/filters.py

* Update tests/schemas/test_coreapi.py

* Update rest_framework/filters.py

* Update rest_framework/filters.py

* Update tests/schemas/test_coreapi.py

* Update tests/schemas/test_coreapi.py

* Update setup.cfg

* Update rest_framework/pagination.py

---------

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>

* Update copy right timeline

* Fix NamespaceVersioning ignoring DEFAULT_VERSION on non-None namespaces (#7278)

* Fix the case where if the namespace is not None and there's no match,
  NamespaceVersioning always raises NotFound even if DEFAULT_VERSION
  is set or None is in ALLOWED_VERSIONS

* Add test cases

* fix OpenAPIRenderer for timedelta

* added test for rendering openapi with timedelta

* added testcase for rendering yaml with minvalidator for duration field (timedelta)

---------

Co-authored-by: Rizwan Shaikh <rshaikh@ces-ltd.com>
Co-authored-by: Lenno Nagel <lenno@namespace.ee>
Co-authored-by: David Smith <39445562+smithdc1@users.noreply.github.com>
Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Konstantin Kuchkov <konstantin.kuchkov@gmail.com>
2023-06-17 09:18:25 +06:00
..
__init__.py XML cleanup 2013-02-22 19:46:47 +00:00
breadcrumbs.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
encoders.py Fix OpenAPI Schema yaml rendering for timedelta (#9007) 2023-06-17 09:18:25 +06:00
field_mapping.py Support UniqueConstraint (#7438) 2023-03-03 13:04:47 +06:00
formatting.py replace force_text with force_str 2019-08-07 21:05:24 +02:00
html.py Ensure that html forms (multipart form data) respect optional fields (#5927) 2018-04-20 15:11:52 +02:00
humanize_datetime.py Change ISO 8601 date format to exclude year/month (#5936) 2018-04-14 05:23:31 +01:00
json.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
mediatypes.py Replaced parse_header with parse_header_parameters. (#8556) 2022-07-14 14:20:36 +02:00
model_meta.py Replaced OrderedDict with dict (#8964) 2023-04-30 15:20:02 +06:00
representation.py replace force_text with force_str 2019-08-07 21:05:24 +02:00
serializer_helpers.py Replaced OrderedDict with dict (#8964) 2023-04-30 15:20:02 +06:00
timezone.py Use ZoneInfo as primary source of timezone data (#8924) 2023-04-08 15:16:00 +06:00
urls.py Remove unnecessary type conversions (#7526) 2020-09-08 15:42:01 +01:00