Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
9bdf64d3
Commit
9bdf64d3
authored
Jun 09, 2015
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8433 from edx/db/json-as-dicts
Use dicts when defining JSON
parents
36d1eb22
9643aca4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lms/djangoapps/certificates/migrations/0020_certificatehtmlviewconfiguration_data.py
+4
-3
No files found.
lms/djangoapps/certificates/migrations/0020_certificatehtmlviewconfiguration_data.py
View file @
9bdf64d3
# -*- 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
,
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment