Repository: mozmeao/basket

Issue:
Add indention setting to newsletters in admin
Some newsletters need to appear indented in the email preference center on bedrock. We will add a boolean field to the newsletter model to allow that indentation to be controlled via the bedrock admin.


Discussion:

Resolving patch:
diff --git a/basket/news/admin.py b/basket/news/admin.py
--- a/basket/news/admin.py
+++ b/basket/news/admin.py
@@ -47,11 +47,11 @@ class APIUserAdmin(admin.ModelAdmin):
 
 class NewsletterAdmin(admin.ModelAdmin):
     fields = ('title', 'slug', 'vendor_id', 'description', 'languages',
-              'show', 'order', 'active', 'requires_double_optin', 'private')
-    list_display = ('order', 'title', 'slug', 'vendor_id', 'languages', 'show', 'active',
+              'show', 'order', 'active', 'indent', 'requires_double_optin', 'private')
+    list_display = ('order', 'title', 'slug', 'vendor_id', 'languages', 'show', 'active', 'indent',
                     'requires_double_optin', 'private')
     list_display_links = ('title', 'slug')
-    list_editable = ('order', 'show', 'active', 'requires_double_optin', 'private')
+    list_editable = ('order', 'show', 'active', 'indent', 'requires_double_optin', 'private')
     list_filter = ('show', 'active', 'requires_double_optin', 'private')
     prepopulated_fields = {"slug": ("title",)}
     search_fields = ('title', 'slug', 'description', 'vendor_id')
diff --git a/basket/news/migrations/0016_auto_20190515_1951.py b/basket/news/migrations/0016_auto_20190515_1951.py
new file mode 100644
--- /dev/null
+++ b/basket/news/migrations/0016_auto_20190515_1951.py
@@ -0,0 +1,42 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.16 on 2019-05-15 19:51
+from __future__ import unicode_literals
+
+import basket.news.fields
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('news', '0015_delete_smsmessage'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='newsletter',
+            name='indent',
+            field=models.BooleanField(default=False, help_text=b'Whether this newsletter is indented in the email preference center.'),
+        ),
+        migrations.AlterField(
+            model_name='localestewards',
+            name='interest',
+            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='stewards', to='news.Interest'),
+        ),
+        migrations.AlterField(
+            model_name='localestewards',
+            name='locale',
+            field=basket.news.fields.LocaleField(choices=[('ach', 'ach (Acholi)'), ('af', 'af (Afrikaans)'), ('ak', 'ak (Akan)'), ('am-et', 'am-et (Amharic)'), ('an', 'an (Aragonese)'), ('ar', 'ar (Arabic)'), ('as', 'as (Assamese)'), ('ast', 'ast (Asturian)'), ('az', 'az (Azerbaijani)'), ('azz', 'azz (Highland Puebla Nahuatl)'), ('be', 'be (Belarusian)'), ('bg', 'bg (Bulgarian)'), ('bm', 'bm (Bambara)'), ('bn-BD', 'bn-BD (Bengali (Bangladesh))'), ('bn-IN', 'bn-IN (Bengali (India))'), ('br', 'br (Breton)'), ('brx', 'brx (Bodo)'), ('bs', 'bs (Bosnian)'), ('ca', 'ca (Catalan)'), ('ca-valencia', 'ca-valencia (Catalan (Valencian))'), ('cak', 'cak (Kaqchikel)'), ('cs', 'cs (Czech)'), ('csb', 'csb (Kashubian)'), ('cy', 'cy (Welsh)'), ('da', 'da (Danish)'), ('dbg', 'dbg (Debug Robot)'), ('de', 'de (German)'), ('de-AT', 'de-AT (German (Austria))'), ('de-CH', 'de-CH (German (Switzerland))'), ('de-DE', 'de-DE (German (Germany))'), ('dsb', 'dsb (Lower Sorbian)'), ('ee', 'ee (Ewe)'), ('el', 'el (Greek)'), ('en-AU', 'en-AU (English (Australian))'), ('en-CA', 'en-CA (English (Canadian))'), ('en-GB', 'en-GB (English (British))'), ('en-NZ', 'en-NZ (English (New Zealand))'), ('en-US', 'en-US (English (US))'), ('en-ZA', 'en-ZA (English (South African))'), ('eo', 'eo (Esperanto)'), ('es', 'es (Spanish)'), ('es-AR', 'es-AR (Spanish (Argentina))'), ('es-CL', 'es-CL (Spanish (Chile))'), ('es-ES', 'es-ES (Spanish (Spain))'), ('es-MX', 'es-MX (Spanish (Mexico))'), ('et', 'et (Estonian)'), ('eu', 'eu (Basque)'), ('fa', 'fa (Persian)'), ('ff', 'ff (Fulah)'), ('fi', 'fi (Finnish)'), ('fj-FJ', 'fj-FJ (Fijian)'), ('fr', 'fr (French)'), ('fur-IT', 'fur-IT (Friulian)'), ('fy-NL', 'fy-NL (Frisian)'), ('ga', 'ga (Irish)'), ('ga-IE', 'ga-IE (Irish)'), ('gd', 'gd (Gaelic (Scotland))'), ('gl', 'gl (Galician)'), ('gn', 'gn (Guarani)'), ('gu', 'gu (Gujarati)'), ('gu-IN', 'gu-IN (Gujarati (India))'), ('ha', 'ha (Hausa)'), ('he', 'he (Hebrew)'), ('hi', 'hi (Hindi)'), ('hi-IN', 'hi-IN (Hindi (India))'), ('hr', 'hr (Croatian)'), ('hsb', 'hsb (Upper Sorbian)'), ('hu', 'hu (Hungarian)'), ('hy-AM', 'hy-AM (Armenian)'), ('id', 'id (Indonesian)'), ('ig', 'ig (Igbo)'), ('is', 'is (Icelandic)'), ('it', 'it (Italian)'), ('ja', 'ja (Japanese)'), ('ja-JP-mac', 'ja-JP-mac (Japanese)'), ('ka', 'ka (Georgian)'), ('kab', 'kab (Kabyle)'), ('kk', 'kk (Kazakh)'), ('km', 'km (Khmer)'), ('kn', 'kn (Kannada)'), ('ko', 'ko (Korean)'), ('kok', 'kok (Konkani)'), ('ks', 'ks (Kashmiri)'), ('ku', 'ku (Kurdish)'), ('la', 'la (Latin)'), ('lg', 'lg (Luganda)'), ('lij', 'lij (Ligurian)'), ('ln', 'ln (Lingala)'), ('lo', 'lo (Lao)'), ('lt', 'lt (Lithuanian)'), ('ltg', 'ltg (Latgalian)'), ('lv', 'lv (Latvian)'), ('mai', 'mai (Maithili)'), ('mg', 'mg (Malagasy)'), ('mi', 'mi (Maori (Aotearoa))'), ('mk', 'mk (Macedonian)'), ('ml', 'ml (Malayalam)'), ('mn', 'mn (Mongolian)'), ('mr', 'mr (Marathi)'), ('ms', 'ms (Malay)'), ('my', 'my (Burmese)'), ('nb-NO', 'nb-NO (Norwegian (Bokm\xe5l))'), ('ne-NP', 'ne-NP (Nepali)'), ('nl', 'nl (Dutch)'), ('nn-NO', 'nn-NO (Norwegian (Nynorsk))'), ('nr', 'nr (Ndebele, South)'), ('nso', 'nso (Northern Sotho)'), ('oc', 'oc (Occitan (Lengadocian))'), ('or', 'or (Odia)'), ('pa', 'pa (Punjabi)'), ('pa-IN', 'pa-IN (Punjabi (India))'), ('pl', 'pl (Polish)'), ('pt-BR', 'pt-BR (Portuguese (Brazilian))'), ('pt-PT', 'pt-PT (Portuguese (Portugal))'), ('rm', 'rm (Romansh)'), ('ro', 'ro (Romanian)'), ('ru', 'ru (Russian)'), ('rw', 'rw (Kinyarwanda)'), ('sa', 'sa (Sanskrit)'), ('sah', 'sah (Sakha)'), ('sat', 'sat (Santali)'), ('si', 'si (Sinhala)'), ('sk', 'sk (Slovak)'), ('sl', 'sl (Slovenian)'), ('son', 'son (Songhai)'), ('sq', 'sq (Albanian)'), ('sr', 'sr (Serbian)'), ('sr-Cyrl', 'sr-Cyrl (Serbian)'), ('sr-Latn', 'sr-Latn (Serbian)'), ('ss', 'ss (Siswati)'), ('st', 'st (Southern Sotho)'), ('sv-SE', 'sv-SE (Swedish)'), ('sw', 'sw (Swahili)'), ('ta', 'ta (Tamil)'), ('ta-IN', 'ta-IN (Tamil (India))'), ('ta-LK', 'ta-LK (Tamil (Sri Lanka))'), ('te', 'te (Telugu)'), ('th', 'th (Thai)'), ('tl', 'tl (Tagalog)'), ('tn', 'tn (Tswana)'), ('tr', 'tr (Turkish)'), ('ts', 'ts (Tsonga)'), ('tsz', 'tsz (Pur\xe9pecha)'), ('tt-RU', 'tt-RU (Tatar)'), ('uk', 'uk (Ukrainian)'), ('ur', 'ur (Urdu)'), ('uz', 'uz (Uzbek)'), ('ve', 've (Venda)'), ('vi', 'vi (Vietnamese)'), ('wo', 'wo (Wolof)'), ('x-testing', 'x-testing (Testing)'), ('xh', 'xh (Xhosa)'), ('yo', 'yo (Yoruba)'), ('zh-CN', 'zh-CN (Chinese (Simplified))'), ('zh-TW', 'zh-TW (Chinese (Traditional))'), ('zu', 'zu (Zulu)')], max_length=32),
+        ),
+        migrations.AlterField(
+            model_name='localizedsmsmessage',
+            name='country',
+            field=basket.news.fields.CountryField(choices=[(b'ad', 'ad (Andorra)'), (b'ae', 'ae (United Arab Emirates)'), (b'af', 'af (Afghanistan)'), (b'ag', 'ag (Antigua and Barbuda)'), (b'ai', 'ai (Anguilla)'), (b'al', 'al (Albania)'), (b'am', 'am (Armenia)'), (b'an', 'an (Netherlands Antilles)'), (b'ao', 'ao (Angola)'), (b'aq', 'aq (Antarctica)'), (b'ar', 'ar (Argentina)'), (b'as', 'as (American Samoa)'), (b'at', 'at (Austria)'), (b'au', 'au (Australia)'), (b'aw', 'aw (Aruba)'), (b'ax', 'ax (Aland Islands)'), (b'az', 'az (Azerbaijan)'), (b'ba', 'ba (Bosnia and Herzegovina)'), (b'bb', 'bb (Barbados)'), (b'bd', 'bd (Bangladesh)'), (b'be', 'be (Belgium)'), (b'bf', 'bf (Burkina Faso)'), (b'bg', 'bg (Bulgaria)'), (b'bh', 'bh (Bahrain)'), (b'bi', 'bi (Burundi)'), (b'bj', 'bj (Benin)'), (b'bl', 'bl (Saint Barth\xe9lemy)'), (b'bm', 'bm (Bermuda)'), (b'bn', 'bn (Brunei Darussalam)'), (b'bo', 'bo (Bolivia, Plurinational State of)'), (b'bq', 'bq (Bonaire, Sint Eustatius and Saba)'), (b'br', 'br (Brazil)'), (b'bs', 'bs (Bahamas)'), (b'bt', 'bt (Bhutan)'), (b'bv', 'bv (Bouvet Island)'), (b'bw', 'bw (Botswana)'), (b'by', 'by (Belarus)'), (b'bz', 'bz (Belize)'), (b'ca', 'ca (Canada)'), (b'cc', 'cc (Cocos (Keeling) Islands)'), (b'cd', 'cd (Congo, the Democratic Republic of the)'), (b'cf', 'cf (Central African Republic)'), (b'cg', 'cg (Congo)'), (b'ch', 'ch (Switzerland)'), (b'ci', "ci (Cote d'Ivoire)"), (b'ck', 'ck (Cook Islands)'), (b'cl', 'cl (Chile)'), (b'cm', 'cm (Cameroon)'), (b'cn', 'cn (China)'), (b'co', 'co (Colombia)'), (b'cr', 'cr (Costa Rica)'), (b'cu', 'cu (Cuba)'), (b'cv', 'cv (Cape Verde)'), (b'cw', 'cw (Cura\xe7ao)'), (b'cx', 'cx (Christmas Island)'), (b'cy', 'cy (Cyprus)'), (b'cz', 'cz (Czech Republic)'), (b'de', 'de (Germany)'), (b'dj', 'dj (Djibouti)'), (b'dk', 'dk (Denmark)'), (b'dm', 'dm (Dominica)'), (b'do', 'do (Dominican Republic)'), (b'dz', 'dz (Algeria)'), (b'ec', 'ec (Ecuador)'), (b'ee', 'ee (Estonia)'), (b'eg', 'eg (Egypt)'), (b'eh', 'eh (Western Sahara)'), (b'er', 'er (Eritrea)'), (b'es', 'es (Spain)'), (b'et', 'et (Ethiopia)'), (b'fi', 'fi (Finland)'), (b'fj', 'fj (Fiji)'), (b'fk', 'fk (Falkland Islands (Malvinas))'), (b'fm', 'fm (Micronesia)'), (b'fo', 'fo (Faroe Islands)'), (b'fr', 'fr (France)'), (b'ga', 'ga (Gabon)'), (b'gb', 'gb (United Kingdom)'), (b'gd', 'gd (Grenada)'), (b'ge', 'ge (Georgia)'), (b'gf', 'gf (French Guiana)'), (b'gg', 'gg (Guernsey)'), (b'gh', 'gh (Ghana)'), (b'gi', 'gi (Gibraltar)'), (b'gl', 'gl (Greenland)'), (b'gm', 'gm (Gambia)'), (b'gn', 'gn (Guinea)'), (b'gp', 'gp (Guadeloupe)'), (b'gq', 'gq (Equatorial Guinea)'), (b'gr', 'gr (Greece)'), (b'gs', 'gs (South Georgia and the South Sandwich Islands)'), (b'gt', 'gt (Guatemala)'), (b'gu', 'gu (Guam)'), (b'gw', 'gw (Guinea-Bissau)'), (b'gy', 'gy (Guyana)'), (b'hk', 'hk (Hong Kong)'), (b'hm', 'hm (Heard Island and McDonald Islands)'), (b'hn', 'hn (Honduras)'), (b'hr', 'hr (Croatia)'), (b'ht', 'ht (Haiti)'), (b'hu', 'hu (Hungary)'), (b'id', 'id (Indonesia)'), (b'ie', 'ie (Ireland)'), (b'il', 'il (Israel)'), (b'im', 'im (Isle of Man)'), (b'in', 'in (India)'), (b'io', 'io (British Indian Ocean Territory)'), (b'iq', 'iq (Iraq)'), (b'ir', 'ir (Iran, Islamic Republic of)'), (b'is', 'is (Iceland)'), (b'it', 'it (Italy)'), (b'je', 'je (Jersey)'), (b'jm', 'jm (Jamaica)'), (b'jo', 'jo (Jordan)'), (b'jp', 'jp (Japan)'), (b'ke', 'ke (Kenya)'), (b'kg', 'kg (Kyrgyzstan)'), (b'kh', 'kh (Cambodia)'), (b'ki', 'ki (Kiribati)'), (b'km', 'km (Comoros)'), (b'kn', 'kn (Saint Kitts and Nevis)'), (b'kp', "kp (Korea, Democratic People's Republic of)"), (b'kr', 'kr (Korea, Republic of)'), (b'kw', 'kw (Kuwait)'), (b'ky', 'ky (Cayman Islands)'), (b'kz', 'kz (Kazakhstan)'), (b'la', "la (Lao People's Democratic Republic)"), (b'lb', 'lb (Lebanon)'), (b'lc', 'lc (Saint Lucia)'), (b'li', 'li (Liechtenstein)'), (b'lk', 'lk (Sri Lanka)'), (b'lr', 'lr (Liberia)'), (b'ls', 'ls (Lesotho)'), (b'lt', 'lt (Lithuania)'), (b'lu', 'lu (Luxembourg)'), (b'lv', 'lv (Latvia)'), (b'ly', 'ly (Libya)'), (b'ma', 'ma (Morocco)'), (b'mc', 'mc (Monaco)'), (b'md', 'md (Moldova, Republic of)'), (b'me', 'me (Montenegro)'), (b'mf', 'mf (Saint Martin (French part))'), (b'mg', 'mg (Madagascar)'), (b'mh', 'mh (Marshall Islands)'), (b'mk', 'mk (Macedonia, the former Yugoslav Republic of)'), (b'ml', 'ml (Mali)'), (b'mm', 'mm (Myanmar)'), (b'mn', 'mn (Mongolia)'), (b'mo', 'mo (Macao)'), (b'mp', 'mp (Northern Mariana Islands)'), (b'mq', 'mq (Martinique)'), (b'mr', 'mr (Mauritania)'), (b'ms', 'ms (Montserrat)'), (b'mt', 'mt (Malta)'), (b'mu', 'mu (Mauritius)'), (b'mv', 'mv (Maldives)'), (b'mw', 'mw (Malawi)'), (b'mx', 'mx (Mexico)'), (b'my', 'my (Malaysia)'), (b'mz', 'mz (Mozambique)'), (b'na', 'na (Namibia)'), (b'nc', 'nc (New Caledonia)'), (b'ne', 'ne (Niger)'), (b'nf', 'nf (Norfolk Island)'), (b'ng', 'ng (Nigeria)'), (b'ni', 'ni (Nicaragua)'), (b'nl', 'nl (Netherlands)'), (b'no', 'no (Norway)'), (b'np', 'np (Nepal)'), (b'nr', 'nr (Nauru)'), (b'nu', 'nu (Niue)'), (b'nz', 'nz (New Zealand)'), (b'om', 'om (Oman)'), (b'pa', 'pa (Panama)'), (b'pe', 'pe (Peru)'), (b'pf', 'pf (French Polynesia)'), (b'pg', 'pg (Papua New Guinea)'), (b'ph', 'ph (Philippines)'), (b'pk', 'pk (Pakistan)'), (b'pl', 'pl (Poland)'), (b'pm', 'pm (Saint Pierre and Miquelon)'), (b'pn', 'pn (Pitcairn)'), (b'pr', 'pr (Puerto Rico)'), (b'ps', 'ps (Palestine)'), (b'pt', 'pt (Portugal)'), (b'pw', 'pw (Palau)'), (b'py', 'py (Paraguay)'), (b'qa', 'qa (Qatar)'), (b're', 're (Reunion)'), (b'ro', 'ro (Romania)'), (b'rs', 'rs (Serbia)'), (b'ru', 'ru (Russian Federation)'), (b'rw', 'rw (Rwanda)'), (b'sa', 'sa (Saudi Arabia)'), (b'sb', 'sb (Solomon Islands)'), (b'sc', 'sc (Seychelles)'), (b'sd', 'sd (Sudan)'), (b'se', 'se (Sweden)'), (b'sg', 'sg (Singapore)'), (b'sh', 'sh (Saint Helena, Ascension and Tristan da Cunha)'), (b'si', 'si (Slovenia)'), (b'sj', 'sj (Svalbard and Jan Mayen)'), (b'sk', 'sk (Slovakia)'), (b'sl', 'sl (Sierra Leone)'), (b'sm', 'sm (San Marino)'), (b'sn', 'sn (Senegal)'), (b'so', 'so (Somalia)'), (b'sr', 'sr (Suriname)'), (b'ss', 'ss (South Sudan)'), (b'st', 'st (Sao Tome and Principe)'), (b'sv', 'sv (El Salvador)'), (b'sx', 'sx (Sint Maarten (Dutch part))'), (b'sy', 'sy (Syrian Arab Republic)'), (b'sz', 'sz (Swaziland)'), (b'tc', 'tc (Turks and Caicos Islands)'), (b'td', 'td (Chad)'), (b'tf', 'tf (French Southern Territories)'), (b'tg', 'tg (Togo)'), (b'th', 'th (Thailand)'), (b'tj', 'tj (Tajikistan)'), (b'tk', 'tk (Tokelau)'), (b'tl', 'tl (Timor-Leste)'), (b'tm', 'tm (Turkmenistan)'), (b'tn', 'tn (Tunisia)'), (b'to', 'to (Tonga)'), (b'tr', 'tr (Turkey)'), (b'tt', 'tt (Trinidad and Tobago)'), (b'tv', 'tv (Tuvalu)'), (b'tw', 'tw (Taiwan)'), (b'tz', 'tz (Tanzania, United Republic of)'), (b'ua', 'ua (Ukraine)'), (b'ug', 'ug (Uganda)'), (b'um', 'um (United States Minor Outlying Islands)'), (b'us', 'us (United States)'), (b'uy', 'uy (Uruguay)'), (b'uz', 'uz (Uzbekistan)'), (b'va', 'va (Holy See (Vatican City State))'), (b'vc', 'vc (Saint Vincent and the Grenadines)'), (b've', 've (Venezuela, Bolivarian Republic of)'), (b'vg', 'vg (Virgin Islands, British)'), (b'vi', 'vi (U.S. Virgin Islands)'), (b'vn', 'vn (Viet Nam)'), (b'vu', 'vu (Vanuatu)'), (b'wf', 'wf (Wallis and Futuna)'), (b'ws', 'ws (Samoa)'), (b'ye', 'ye (Yemen)'), (b'yt', 'yt (Mayotte)'), (b'za', 'za (South Africa)'), (b'zm', 'zm (Zambia)'), (b'zw', 'zw (Zimbabwe)')], default=b'us', max_length=3),
+        ),
+        migrations.AlterField(
+            model_name='localizedsmsmessage',
+            name='language',
+            field=basket.news.fields.LocaleField(choices=[('ach', 'ach (Acholi)'), ('af', 'af (Afrikaans)'), ('ak', 'ak (Akan)'), ('am-et', 'am-et (Amharic)'), ('an', 'an (Aragonese)'), ('ar', 'ar (Arabic)'), ('as', 'as (Assamese)'), ('ast', 'ast (Asturian)'), ('az', 'az (Azerbaijani)'), ('azz', 'azz (Highland Puebla Nahuatl)'), ('be', 'be (Belarusian)'), ('bg', 'bg (Bulgarian)'), ('bm', 'bm (Bambara)'), ('bn-BD', 'bn-BD (Bengali (Bangladesh))'), ('bn-IN', 'bn-IN (Bengali (India))'), ('br', 'br (Breton)'), ('brx', 'brx (Bodo)'), ('bs', 'bs (Bosnian)'), ('ca', 'ca (Catalan)'), ('ca-valencia', 'ca-valencia (Catalan (Valencian))'), ('cak', 'cak (Kaqchikel)'), ('cs', 'cs (Czech)'), ('csb', 'csb (Kashubian)'), ('cy', 'cy (Welsh)'), ('da', 'da (Danish)'), ('dbg', 'dbg (Debug Robot)'), ('de', 'de (German)'), ('de-AT', 'de-AT (German (Austria))'), ('de-CH', 'de-CH (German (Switzerland))'), ('de-DE', 'de-DE (German (Germany))'), ('dsb', 'dsb (Lower Sorbian)'), ('ee', 'ee (Ewe)'), ('el', 'el (Greek)'), ('en-AU', 'en-AU (English (Australian))'), ('en-CA', 'en-CA (English (Canadian))'), ('en-GB', 'en-GB (English (British))'), ('en-NZ', 'en-NZ (English (New Zealand))'), ('en-US', 'en-US (English (US))'), ('en-ZA', 'en-ZA (English (South African))'), ('eo', 'eo (Esperanto)'), ('es', 'es (Spanish)'), ('es-AR', 'es-AR (Spanish (Argentina))'), ('es-CL', 'es-CL (Spanish (Chile))'), ('es-ES', 'es-ES (Spanish (Spain))'), ('es-MX', 'es-MX (Spanish (Mexico))'), ('et', 'et (Estonian)'), ('eu', 'eu (Basque)'), ('fa', 'fa (Persian)'), ('ff', 'ff (Fulah)'), ('fi', 'fi (Finnish)'), ('fj-FJ', 'fj-FJ (Fijian)'), ('fr', 'fr (French)'), ('fur-IT', 'fur-IT (Friulian)'), ('fy-NL', 'fy-NL (Frisian)'), ('ga', 'ga (Irish)'), ('ga-IE', 'ga-IE (Irish)'), ('gd', 'gd (Gaelic (Scotland))'), ('gl', 'gl (Galician)'), ('gn', 'gn (Guarani)'), ('gu', 'gu (Gujarati)'), ('gu-IN', 'gu-IN (Gujarati (India))'), ('ha', 'ha (Hausa)'), ('he', 'he (Hebrew)'), ('hi', 'hi (Hindi)'), ('hi-IN', 'hi-IN (Hindi (India))'), ('hr', 'hr (Croatian)'), ('hsb', 'hsb (Upper Sorbian)'), ('hu', 'hu (Hungarian)'), ('hy-AM', 'hy-AM (Armenian)'), ('id', 'id (Indonesian)'), ('ig', 'ig (Igbo)'), ('is', 'is (Icelandic)'), ('it', 'it (Italian)'), ('ja', 'ja (Japanese)'), ('ja-JP-mac', 'ja-JP-mac (Japanese)'), ('ka', 'ka (Georgian)'), ('kab', 'kab (Kabyle)'), ('kk', 'kk (Kazakh)'), ('km', 'km (Khmer)'), ('kn', 'kn (Kannada)'), ('ko', 'ko (Korean)'), ('kok', 'kok (Konkani)'), ('ks', 'ks (Kashmiri)'), ('ku', 'ku (Kurdish)'), ('la', 'la (Latin)'), ('lg', 'lg (Luganda)'), ('lij', 'lij (Ligurian)'), ('ln', 'ln (Lingala)'), ('lo', 'lo (Lao)'), ('lt', 'lt (Lithuanian)'), ('ltg', 'ltg (Latgalian)'), ('lv', 'lv (Latvian)'), ('mai', 'mai (Maithili)'), ('mg', 'mg (Malagasy)'), ('mi', 'mi (Maori (Aotearoa))'), ('mk', 'mk (Macedonian)'), ('ml', 'ml (Malayalam)'), ('mn', 'mn (Mongolian)'), ('mr', 'mr (Marathi)'), ('ms', 'ms (Malay)'), ('my', 'my (Burmese)'), ('nb-NO', 'nb-NO (Norwegian (Bokm\xe5l))'), ('ne-NP', 'ne-NP (Nepali)'), ('nl', 'nl (Dutch)'), ('nn-NO', 'nn-NO (Norwegian (Nynorsk))'), ('nr', 'nr (Ndebele, South)'), ('nso', 'nso (Northern Sotho)'), ('oc', 'oc (Occitan (Lengadocian))'), ('or', 'or (Odia)'), ('pa', 'pa (Punjabi)'), ('pa-IN', 'pa-IN (Punjabi (India))'), ('pl', 'pl (Polish)'), ('pt-BR', 'pt-BR (Portuguese (Brazilian))'), ('pt-PT', 'pt-PT (Portuguese (Portugal))'), ('rm', 'rm (Romansh)'), ('ro', 'ro (Romanian)'), ('ru', 'ru (Russian)'), ('rw', 'rw (Kinyarwanda)'), ('sa', 'sa (Sanskrit)'), ('sah', 'sah (Sakha)'), ('sat', 'sat (Santali)'), ('si', 'si (Sinhala)'), ('sk', 'sk (Slovak)'), ('sl', 'sl (Slovenian)'), ('son', 'son (Songhai)'), ('sq', 'sq (Albanian)'), ('sr', 'sr (Serbian)'), ('sr-Cyrl', 'sr-Cyrl (Serbian)'), ('sr-Latn', 'sr-Latn (Serbian)'), ('ss', 'ss (Siswati)'), ('st', 'st (Southern Sotho)'), ('sv-SE', 'sv-SE (Swedish)'), ('sw', 'sw (Swahili)'), ('ta', 'ta (Tamil)'), ('ta-IN', 'ta-IN (Tamil (India))'), ('ta-LK', 'ta-LK (Tamil (Sri Lanka))'), ('te', 'te (Telugu)'), ('th', 'th (Thai)'), ('tl', 'tl (Tagalog)'), ('tn', 'tn (Tswana)'), ('tr', 'tr (Turkish)'), ('ts', 'ts (Tsonga)'), ('tsz', 'tsz (Pur\xe9pecha)'), ('tt-RU', 'tt-RU (Tatar)'), ('uk', 'uk (Ukrainian)'), ('ur', 'ur (Urdu)'), ('uz', 'uz (Uzbek)'), ('ve', 've (Venda)'), ('vi', 'vi (Vietnamese)'), ('wo', 'wo (Wolof)'), ('x-testing', 'x-testing (Testing)'), ('xh', 'xh (Xhosa)'), ('yo', 'yo (Yoruba)'), ('zh-CN', 'zh-CN (Chinese (Simplified))'), ('zh-TW', 'zh-TW (Chinese (Traditional))'), ('zu', 'zu (Zulu)')], default=b'en-US', max_length=32),
+        ),
+    ]
diff --git a/basket/news/models.py b/basket/news/models.py
--- a/basket/news/models.py
+++ b/basket/news/models.py
@@ -52,6 +52,10 @@ class Newsletter(models.Model):
         help_text="Whether this newsletter is private. Private newsletters "
                   "require the subscribe requests to use an API key.",
     )
+    indent = models.BooleanField(
+        default=False,
+        help_text="Whether this newsletter is indented in the email preference center.",
+    )
     vendor_id = models.CharField(
         max_length=128,
         help_text="The backend vendor's identifier for this newsletter",


Test patch:
diff --git a/basket/news/tests/test_views.py b/basket/news/tests/test_views.py
--- a/basket/news/tests/test_views.py
+++ b/basket/news/tests/test_views.py
@@ -906,7 +906,7 @@ def test_newsletters_view(self):
             vendor_id='VENDOR1',
         )
 
-        models.Newsletter.objects.create(slug='slug2', vendor_id='VENDOR2')
+        models.Newsletter.objects.create(slug='slug2', vendor_id='VENDOR2', indent=True)
         models.Newsletter.objects.create(slug='slug3', vendor_id='VENDOR3', private=True)
 
         req = self.rf.get(self.url)
@@ -918,6 +918,8 @@ def test_newsletters_view(self):
         obj = newsletters['slug']
 
         self.assertTrue(newsletters['slug3']['private'])
+        self.assertTrue(newsletters['slug2']['indent'])
+        self.assertFalse(newsletters['slug3']['indent'])
         self.assertEqual(nl1.title, obj['title'])
         self.assertEqual(nl1.active, obj['active'])
         for lang in ['en-US', 'fr']: