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

fix future deprecate warning of django.utils.timezone.utc #339

Merged
merged 1 commit into from Aug 15, 2022

Conversation

jairhenrique
Copy link
Contributor

@jairhenrique jairhenrique commented Aug 11, 2022

Describe the change
Make code compatible with future Django release.

model_bakery/timezone.py:6: RemovedInDjango50Warning: The django.utils.timezone.utc alias is deprecated. Please update your code to use datetime.timezone.utc instead.
    from django.utils.timezone import utc

PR Checklist

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@amureki amureki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice deprecation clean-up @jairhenrique ! Thanks for the efforts. :)

@amureki amureki merged commit a657de6 into model-bakers:main Aug 15, 2022
@jairhenrique jairhenrique deleted the fix-warning branch August 15, 2022 13:30
@berinhard
Copy link
Member

berinhard commented Aug 15, 2022

Thanks for your contribution @jairhenrique 👍

@marcgibbons
Copy link

@berinhard @amureki Any chance this can be released to PyPI?

@amureki
Copy link
Collaborator

amureki commented Oct 5, 2022

@berinhard @amureki Any chance this can be released to PyPI?

Good point, thanks for mentioning that! 👍

https://pypi.org/project/model-bakery/1.7.1/ is out

@marcgibbons
Copy link

@amureki Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants