Update dummy data types
This commit is contained in:
parent
b2b2baab0f
commit
2464c97079
|
|
@ -117,6 +117,14 @@ class ContentBlockFactory(BasePageFactory):
|
||||||
if block_type == 'task':
|
if block_type == 'task':
|
||||||
kwargs['{}__{}__{}__{}'.format(stream_field_name, idx, block_type, field)] = RichText(
|
kwargs['{}__{}__{}__{}'.format(stream_field_name, idx, block_type, field)] = RichText(
|
||||||
value[field])
|
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':
|
elif block_type == 'image_block':
|
||||||
kwargs['{}__{}__{}__{}'.format(stream_field_name, idx, block_type,
|
kwargs['{}__{}__{}__{}'.format(stream_field_name, idx, block_type,
|
||||||
'image__title')] = fake_paragraph()
|
'image__title')] = fake_paragraph()
|
||||||
|
|
|
||||||
|
|
@ -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>'
|
'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',
|
'type': 'text_block',
|
||||||
'value': {
|
'value': {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue