From 9784211b5a75a11d22a519fedc910c4b56fb7421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 1 Jul 2019 15:59:15 +0200 Subject: [PATCH] misc: rename "json feed" cell as "json prototype" cell (#34471) --- combo/data/migrations/0021_jsoncell.py | 2 +- combo/data/models.py | 2 +- tests/test_manager.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/combo/data/migrations/0021_jsoncell.py b/combo/data/migrations/0021_jsoncell.py index fafd25bf..5baf2e91 100644 --- a/combo/data/migrations/0021_jsoncell.py +++ b/combo/data/migrations/0021_jsoncell.py @@ -29,7 +29,7 @@ class Migration(migrations.Migration): ('page', models.ForeignKey(to='data.Page')), ], options={ - 'verbose_name': 'JSON Feed', + 'verbose_name': 'JSON Prototype', }, ), ] diff --git a/combo/data/models.py b/combo/data/models.py index 968cd567..27cdcda5 100644 --- a/combo/data/models.py +++ b/combo/data/models.py @@ -1288,7 +1288,7 @@ class JsonCell(JsonCellBase): help_text=_('In seconds. Use 0 for default system timeout')) class Meta: - verbose_name = _('JSON Feed') + verbose_name = _('JSON Prototype') @property def varnames(self): diff --git a/tests/test_manager.py b/tests/test_manager.py index e9748e63..c6ca5776 100644 --- a/tests/test_manager.py +++ b/tests/test_manager.py @@ -953,7 +953,7 @@ def test_page_cell_placeholder(app, admin_user): resp = app.get('/manage/pages/%s/' % page.id) assert re.findall('data-placeholder-key="(.*)">', resp.text) == ['content', 'foobar', 'footer'] assert re.findall('

(.*)

', resp.text) == [ - 'Page - One', 'Content', 'JSON Feed / Foobar', 'Footer'] + 'Page - One', 'Content', 'JSON Prototype / Foobar', 'Footer'] def test_page_familycell_placeholder(app, admin_user): page = Page(title='My family', slug='my-family', template_name='standard')