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

Issue with django.db.models.JSONField #197

Open
subodhk01 opened this issue Aug 10, 2021 · 0 comments
Open

Issue with django.db.models.JSONField #197

subodhk01 opened this issue Aug 10, 2021 · 0 comments

Comments

@subodhk01
Copy link

  • Django better admin ArrayField version: 1.4.2
  • Django version: 3.2
  • Python version: 3.7.3
  • Operating System: Windows 11

Description

I added django.db.models.JSONField as the base field. Now when adding JSON on admin panel with single quotes its shows Enter a valid JSON, so I added JSON with double quotes and it worked but on the same page it then returned the same json with single quotes, so now I'm unable to edit the previous json until and unless I convert everything to double quotes.

Initial JSON:
image

JSON after instance save:
image

When resaving without any changes:
image

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

No branches or pull requests

1 participant