-
Notifications
You must be signed in to change notification settings - Fork 764
remove JSONField compat #1421
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
Conversation
LGTM 🌷 (except the pre-commit error) |
@ulgens fixed 😉 |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
* remove JSONFIeld compat * fix black
Django 3.1 introduced universal JSONFIeld so compatibility is no longer required because we support Django 3.2 or above.