[OC-3036] Fixed double quotes issue in OCIM's JSON fields
This pull request fixes a double quotes json bug that occurs when adding a new application instance on OCIM. This fixes an issue with deserializing the django_extensions library's JSONField where invalid json would be created.
JIRA tickets: OC-3036
Dependencies: None
Sandbox URL: TBD - sandbox is being provisioned.
Merge deadline: "None"
Testing instructions:
- Open up a running version of OCIM with this pull request.
- Go to the django admin.
- Attempt to add a new "Open edX Instances"
- Scrolling down "Openstack server flavor" and "Openstack server base image" contain valid json where all string values are encased in double quotes rather than single quotes.
- Put in valid values for all required fields.
- Save. There should be no exceptions that occur.
Author notes and concerns:
- In the long run it is probably better to use Django's own JSONField, but that requires upgrading postgresql's version. For now this works.
Reviewers
-
mtyaka