Add brand_type to EmailBranding.

It makes more sense to put the brand_type with EmailBranding rather than in Service.
Next step is to add the new type to the form in admin app.
This commit is contained in:
Rebecca Law
2018-08-23 13:53:05 +01:00
parent c067aea68f
commit 3816010c72
4 changed files with 99 additions and 7 deletions

View File

@@ -1,3 +1,5 @@
from app.models import BRANDING_TYPES
post_create_email_branding_schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST schema for getting email_branding",
@@ -10,6 +12,7 @@ post_create_email_branding_schema = {
"text": {"type": ["string", "null"]},
"logo": {"type": ["string", "null"]},
"domain": {"type": ["string", "null"]},
"brand_type": {"enum": BRANDING_TYPES},
},
"required": []
}
@@ -26,6 +29,7 @@ post_update_email_branding_schema = {
"text": {"type": ["string", "null"]},
"logo": {"type": ["string", "null"]},
"domain": {"type": ["string", "null"]},
"brand_type": {"enum": BRANDING_TYPES},
},
"required": []
}