Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for zoneinfo objects #849

Open
wants to merge 95 commits into
base: master
Choose a base branch
from

Conversation

nikvst
Copy link

@nikvst nikvst commented May 18, 2023

Same fix as #717, but for zoneinfo objects.

I ran into a problem because django is migrating from pytz to ZoneInfo and is planning to remove pytz support from django 5.0.

If this change requires tests, where should I add them?

Thanks

WasinTh and others added 30 commits August 25, 2019 13:36
`permission_classes` expects tuple but list was provided
fix a bug: url from swagger_settings.DEFAULT_API_URL is not working
This change fixes an `OPTIONS` request to the API page which will return
a successful response, but the `TemplateHTMLRender` will not be prepared
to render it since there is no template name provided in either the view
or response [1].

[1]: https://github.com/encode/django-rest-framework/blob/f0a5b958a134e8cd94e3ef3263e8fa623ac9b82f/rest_framework/renderers.py#L178-L189
Add utf-8 support for generated formats
Remove universal wheel, python 2 is unsupported
JoelLefkowitz and others added 19 commits February 8, 2023 10:25
…j-drf

Run tests with latest dependencies
…r-ordering

keep path parameters in their given order
Django master branch bumped minimal python version
to Python 3.10. In latest version was added check for uniq basename.
Fix: Provide support for enums in codecs.
* Feature: Migrate to PyYAML for yaml generator.

Closes axnsan12#833

* Chore: Update swagger ui and redoc dependencies.
@nikvst nikvst changed the title add support for working with zoneinfo object field Add support for working with zoneinfo object field May 18, 2023
@nikvst nikvst changed the title Add support for working with zoneinfo object field Added support for zoneinfo objects Jun 5, 2023
src/drf_yasg/utils.py Outdated Show resolved Hide resolved
@nikvst nikvst force-pushed the add-support-for-zoneinfo-timezone-field branch from bc02a0d to 0c73a90 Compare December 5, 2023 07:46
@JoelLefkowitz JoelLefkowitz deleted the branch axnsan12:master October 17, 2024 11:55
@JoelLefkowitz JoelLefkowitz reopened this Oct 17, 2024
@JoelLefkowitz JoelLefkowitz changed the base branch from 1.21.x to master October 17, 2024 12:01
@JoelLefkowitz JoelLefkowitz added 1.23.x Release target in 1.23.x bug Bug report/fix labels Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.23.x Release target in 1.23.x bug Bug report/fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.