misc: rename "json feed" cell as "json prototype" cell (#34471)

This commit is contained in:
Frédéric Péters 2019-07-01 15:59:15 +02:00
parent 43dad697ce
commit 9784211b5a
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ class Migration(migrations.Migration):
('page', models.ForeignKey(to='data.Page')),
],
options={
'verbose_name': 'JSON Feed',
'verbose_name': 'JSON Prototype',
},
),
]

View File

@ -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):

View File

@ -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('<h2>(.*)</h2>', 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')