Commit e7566854 by Matt Drayer

mattdrayer/SOL-952: Update default URLs and add backwards migration

parent 7c2a4bc7
...@@ -15,28 +15,13 @@ class Migration(DataMigration): ...@@ -15,28 +15,13 @@ class Migration(DataMigration):
config = { config = {
"default": { "default": {
"accomplishment_class_append": "accomplishment-certificate", "accomplishment_class_append": "accomplishment-certificate",
"platform_name": "edX", "platform_name": "Your Platform Name Here",
"company_about_url": "http://www.edx.org/about-us", "company_about_url": "http://www.example.com/about-us",
"company_privacy_url": "http://www.edx.org/edx-privacy-policy", "company_privacy_url": "http://www.example.com/privacy-policy",
"company_tos_url": "http://www.edx.org/edx-terms-service", "company_tos_url": "http://www.example.com/terms-service",
"company_verified_certificate_url": "http://www.edx.org/verified-certificate", "company_verified_certificate_url": "http://www.example.com/verified-certificate",
"logo_src": "/static/certificates/images/logo-edx.png", "logo_src": "/static/certificates/images/logo.png",
"logo_url": "http://www.edx.org" "logo_url": "http://www.example.com"
},
"honor": {
"certificate_type": "honor",
"certificate_title": "Honor Certificate",
"document_body_class_append": "is-honorcode"
},
"verified": {
"certificate_type": "verified",
"certificate_title": "Verified Certificate",
"document_body_class_append": "is-idverified"
},
"xseries": {
"certificate_type": "xseries",
"certificate_title": "XSeries Certificate",
"document_body_class_append": "is-xseries"
}, },
"base": { "base": {
"certificate_type": "base", "certificate_type": "base",
...@@ -55,7 +40,10 @@ class Migration(DataMigration): ...@@ -55,7 +40,10 @@ class Migration(DataMigration):
) )
def backwards(self, orm): def backwards(self, orm):
"Write your backwards methods here." """
Rolling back to zero-state, so remove all currently-defined configurations
"""
orm.CertificateHtmlViewConfiguration.objects.all().delete()
models = { models = {
'auth.group': { 'auth.group': {
......
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