0001-misc-rename-json-feed-cell-as-json-prototype-cell-34.patch
combo/data/migrations/0021_jsoncell.py | ||
---|---|---|
29 | 29 |
('page', models.ForeignKey(to='data.Page')), |
30 | 30 |
], |
31 | 31 |
options={ |
32 |
'verbose_name': 'JSON Feed',
|
|
32 |
'verbose_name': 'JSON Prototype',
|
|
33 | 33 |
}, |
34 | 34 |
), |
35 | 35 |
] |
combo/data/models.py | ||
---|---|---|
1288 | 1288 |
help_text=_('In seconds. Use 0 for default system timeout')) |
1289 | 1289 | |
1290 | 1290 |
class Meta: |
1291 |
verbose_name = _('JSON Feed')
|
|
1291 |
verbose_name = _('JSON Prototype')
|
|
1292 | 1292 | |
1293 | 1293 |
@property |
1294 | 1294 |
def varnames(self): |
tests/test_manager.py | ||
---|---|---|
953 | 953 |
resp = app.get('/manage/pages/%s/' % page.id) |
954 | 954 |
assert re.findall('data-placeholder-key="(.*)">', resp.text) == ['content', 'foobar', 'footer'] |
955 | 955 |
assert re.findall('<h2>(.*)</h2>', resp.text) == [ |
956 |
'Page - One', 'Content', 'JSON Feed / Foobar', 'Footer']
|
|
956 |
'Page - One', 'Content', 'JSON Prototype / Foobar', 'Footer']
|
|
957 | 957 | |
958 | 958 |
def test_page_familycell_placeholder(app, admin_user): |
959 | 959 |
page = Page(title='My family', slug='my-family', template_name='standard') |
960 |
- |