Update dummy data types

This commit is contained in:
Ramon Wenger 2018-09-18 19:38:26 +02:00
parent b2b2baab0f
commit 2464c97079
2 changed files with 15 additions and 0 deletions

View File

@ -117,6 +117,14 @@ class ContentBlockFactory(BasePageFactory):
if block_type == 'task':
kwargs['{}__{}__{}__{}'.format(stream_field_name, idx, block_type, field)] = RichText(
value[field])
if block_type == 'basic_knowledge':
if field == 'description':
kwargs[
'{}__{}__{}__{}'.format(stream_field_name, idx, block_type, field)] = RichText(
fake_paragraph())
else:
kwargs[
'{}__{}__{}__{}'.format(stream_field_name, idx, block_type, field)] = 'https://google.ch'
elif block_type == 'image_block':
kwargs['{}__{}__{}__{}'.format(stream_field_name, idx, block_type,
'image__title')] = fake_paragraph()

View File

@ -247,6 +247,13 @@ data = [
'text': '<p>Ergänzen Sie anhand der Webseite Ihrer Berufsfachschule und allenfalls mithilfe weiterer Materialien alle fehlenden Angaben in der Mindmap.</p>'
}
},
{
'type': 'basic_knowledge',
'value': {
'description': '<p>Lesen Sie folgendes Basiswissen</p>',
'url': 'https://google.ch'
}
},
{
'type': 'text_block',
'value': {