Skip to content

Issue with django.db.models.JSONField #197

@subodhk01

Description

@subodhk01
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions