Skip to content

resolve django encoding deprecation warnings #853

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

Merged
merged 1 commit into from
Jan 20, 2020

Conversation

luto
Copy link
Contributor

@luto luto commented Jan 14, 2020

  .../graphene_django/debug/sql/tracking.py:81: RemovedInDjango40Warning: force_text() is deprecated in favor of force_str().
    return "'%s'" % force_text(element).replace("'", "''")

https://docs.djangoproject.com/en/3.0/ref/utils/#django.utils.encoding.force_text

Get rid of more deprecated function calls (see #847), which are spamming into my test suite warnings :)

Copy link
Member

@jkimbo jkimbo left a comment

Choose a reason for hiding this comment

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

Thanks @luto

@jkimbo jkimbo merged commit 62ecbae into graphql-python:master Jan 20, 2020
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.

2 participants