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

Moving away from deprecated django features #46

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

Conversation

annemacedo-tw
Copy link

@annemacedo-tw annemacedo-tw commented Sep 11, 2023

This patch moves away from some functions and libraries that were deprecated in Django. This includes:

six not being a vendored package anymore
ugettext_lazy being deprecated in favor of gettext_lazy

This makes the library usable in newer versions of Django.

This patch also fixes the mixed types error, allowing us to go beyond Django 3.1 :)

Django 3.0 removed the six vendored library in favour of the six package
from pypi.

https://docs.djangoproject.com/en/3.0/releases/3.0/#removed-private-python-2-compatibility-apis

Changes model to use pypi's six and adds it to requirements.
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.

1 participant