misc: rename "json feed" cell as "json prototype" cell (#34471)
This commit is contained in:
parent
43dad697ce
commit
9784211b5a
|
@ -29,7 +29,7 @@ class Migration(migrations.Migration):
|
|||
('page', models.ForeignKey(to='data.Page')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'JSON Feed',
|
||||
'verbose_name': 'JSON Prototype',
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue