Fall back to plain vanilla char blocks because test data generation is not sophisticated enough for RichtTextBlocks

This commit is contained in:
Pawel Kowalski 2018-08-16 13:17:43 +02:00
parent c4526da8fd
commit 6c7a1c9a7b
2 changed files with 11 additions and 4 deletions

View File

@ -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):

View File

@ -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.'
}
},
# {