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

remove JSONField compat #1421

Merged
merged 3 commits into from Jun 7, 2023
Merged

Conversation

dulmandakh
Copy link
Contributor

Django 3.1 introduced universal JSONFIeld so compatibility is no longer required because we support Django 3.2 or above.

@dulmandakh dulmandakh changed the title remove JSONFIeld compat remove JSONField compat Jun 7, 2023
@ulgens
Copy link
Collaborator

ulgens commented Jun 7, 2023

LGTM 🌷 (except the pre-commit error)

@ulgens ulgens self-requested a review June 7, 2023 13:51
@dulmandakh
Copy link
Contributor Author

@ulgens fixed 😉

@firaskafri firaskafri merged commit 8fa8aea into graphql-python:main Jun 7, 2023
16 checks passed
Copy link
Collaborator

@sjdemartini sjdemartini left a comment

Choose a reason for hiding this comment

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

One quick comment, but thanks for the cleanup!

from django.db.models import JSONField
except ImportError:
JSONField = MissingType
IntegerRangeField, ArrayField, HStoreField, RangeField = (MissingType,) * 5
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like this should be * 4 now instead

Copy link
Collaborator

Choose a reason for hiding this comment

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

Since this was merged, I added a separate quick PR for this #1423

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

4 participants