Fall back to plain vanilla char blocks because test data generation is not sophisticated enough for RichtTextBlocks
This commit is contained in:
parent
c4526da8fd
commit
6c7a1c9a7b
|
|
@ -16,12 +16,12 @@ class DocumentBlock(blocks.StructBlock):
|
|||
|
||||
|
||||
class TextBlock(blocks.StructBlock):
|
||||
text = RichTextBlock()
|
||||
text = blocks.CharBlock()
|
||||
|
||||
|
||||
class ModalTextBlock(blocks.StructBlock):
|
||||
description = RichTextBlock()
|
||||
modal_content = RichTextBlock()
|
||||
description = blocks.CharBlock()
|
||||
modal_content = blocks.CharBlock()
|
||||
|
||||
|
||||
class StudentEntryBlock(blocks.StructBlock):
|
||||
|
|
|
|||
|
|
@ -69,7 +69,14 @@ data = [
|
|||
'type': 'text_block',
|
||||
'value': {
|
||||
'type': 'text_block',
|
||||
'text': 'Sie haben diesen Sommer ihre Lehre begonnen. Was bedeutet dieser neue Abschnitt für Sie?'
|
||||
'text': 'Sie haben diesen Sommer ihre Lehre begonnen. Was bedeutet dieser neue Abschnitt für Sie?\nHalten Sie Ihre Erfahrungen im Bereich fest und stellen Sie diese anschliessend der Klasse vor.'
|
||||
}
|
||||
},
|
||||
{
|
||||
'type': 'text_block',
|
||||
'value': {
|
||||
'type': 'text_block',
|
||||
'text': 'Das folgende Interview bezieht sich auf Jugendliche, die Ihre Lehre im Sommer begonnen haben. Lesen Sie das Interview durch und bearbeiten Sie anschliessend die Aufgaben.'
|
||||
}
|
||||
},
|
||||
# {
|
||||
|
|
|
|||
Loading…
Reference in New Issue