Merge pull request #8443 from edx/mattdrayer/SOL-952
mattdrayer/SOL-952: Update default URLs and add backwards migration
This commit is contained in:
@@ -15,28 +15,13 @@ class Migration(DataMigration):
|
||||
config = {
|
||||
"default": {
|
||||
"accomplishment_class_append": "accomplishment-certificate",
|
||||
"platform_name": "edX",
|
||||
"company_about_url": "http://www.edx.org/about-us",
|
||||
"company_privacy_url": "http://www.edx.org/edx-privacy-policy",
|
||||
"company_tos_url": "http://www.edx.org/edx-terms-service",
|
||||
"company_verified_certificate_url": "http://www.edx.org/verified-certificate",
|
||||
"logo_src": "/static/certificates/images/logo-edx.png",
|
||||
"logo_url": "http://www.edx.org"
|
||||
},
|
||||
"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"
|
||||
"platform_name": "Your Platform Name Here",
|
||||
"company_about_url": "http://www.example.com/about-us",
|
||||
"company_privacy_url": "http://www.example.com/privacy-policy",
|
||||
"company_tos_url": "http://www.example.com/terms-service",
|
||||
"company_verified_certificate_url": "http://www.example.com/verified-certificate",
|
||||
"logo_src": "/static/certificates/images/logo.png",
|
||||
"logo_url": "http://www.example.com"
|
||||
},
|
||||
"base": {
|
||||
"certificate_type": "base",
|
||||
@@ -55,7 +40,10 @@ class Migration(DataMigration):
|
||||
)
|
||||
|
||||
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 = {
|
||||
'auth.group': {
|
||||
|
||||
Reference in New Issue
Block a user