Commit 9bdf64d3 by David Baumgold

Merge pull request #8433 from edx/db/json-as-dicts

Use dicts when defining JSON
parents 36d1eb22 9643aca4
# -*- coding: utf-8 -*-
import json
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
......@@ -11,7 +12,7 @@ class Migration(DataMigration):
"""
Bootstraps the HTML view template with some default configuration parameters
"""
json_config = """{
config = {
"default": {
"accomplishment_class_append": "accomplishment-certificate",
"platform_name": "edX",
......@@ -47,9 +48,9 @@ class Migration(DataMigration):
"certificate_title": "Distinguished Certificate of Achievement",
"document_body_class_append": "is-distinguished"
}
}"""
}
orm.CertificateHtmlViewConfiguration.objects.create(
configuration=json_config,
configuration=json.dumps(config),
enabled=False,
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment