Initialize LearningContent description with RichText
This commit is contained in:
parent
7cc235323b
commit
45a27332cd
|
|
@ -1,4 +1,5 @@
|
|||
import wagtail_factories
|
||||
from wagtail.rich_text import RichText
|
||||
|
||||
from vbv_lernwelt.learnpath.models import (
|
||||
Circle,
|
||||
|
|
@ -86,7 +87,7 @@ class LearningUnitFactory(wagtail_factories.PageFactory):
|
|||
class LearningContentAttendanceDayFactory(wagtail_factories.PageFactory):
|
||||
title = "Platzhalter Inhalt"
|
||||
minutes = 15
|
||||
description = "Platzhalter Beschreibung"
|
||||
description = RichText("Platzhalter Beschreibung")
|
||||
content_url = ""
|
||||
|
||||
class Meta:
|
||||
|
|
@ -97,7 +98,7 @@ class LearningContentVideoFactory(wagtail_factories.PageFactory):
|
|||
title = "Platzhalter Video"
|
||||
minutes = 15
|
||||
content_url = "https://www.youtube.com/embed/qhPIfxS2hvI"
|
||||
description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
||||
description = RichText("Lorem ipsum dolor sit amet, consectetur adipiscing elit.")
|
||||
|
||||
class Meta:
|
||||
model = LearningContentVideo
|
||||
|
|
@ -107,7 +108,7 @@ class LearningContentPlaceholderFactory(wagtail_factories.PageFactory):
|
|||
title = "Platzhalter Video"
|
||||
minutes = 15
|
||||
content_url = ""
|
||||
description = "Platzhalter"
|
||||
description = RichText("Platzhalter")
|
||||
|
||||
class Meta:
|
||||
model = LearningContentPlaceholder
|
||||
|
|
@ -117,7 +118,7 @@ class LearningContentFeedbackFactory(wagtail_factories.PageFactory):
|
|||
title = "Feedback"
|
||||
minutes = 15
|
||||
content_url = ""
|
||||
description = ""
|
||||
description = RichText("")
|
||||
|
||||
class Meta:
|
||||
model = LearningContentFeedback
|
||||
|
|
@ -127,7 +128,7 @@ class LearningContentLearningModuleFactory(wagtail_factories.PageFactory):
|
|||
title = "Beispiel Lernmodul"
|
||||
minutes = 15
|
||||
content_url = ""
|
||||
description = ""
|
||||
description = RichText("")
|
||||
|
||||
class Meta:
|
||||
model = LearningContentLearningModule
|
||||
|
|
@ -137,7 +138,7 @@ class LearningContentMediaLibraryFactory(wagtail_factories.PageFactory):
|
|||
title = "Mediathek"
|
||||
minutes = 15
|
||||
content_url = ""
|
||||
description = ""
|
||||
description = RichText("")
|
||||
|
||||
class Meta:
|
||||
model = LearningContentMediaLibrary
|
||||
|
|
@ -147,7 +148,7 @@ class LearningContentTestFactory(wagtail_factories.PageFactory):
|
|||
title = "Fachcheck"
|
||||
minutes = 15
|
||||
content_url = ""
|
||||
description = ""
|
||||
description = RichText("")
|
||||
|
||||
class Meta:
|
||||
model = LearningContentTest
|
||||
|
|
@ -157,7 +158,7 @@ class LearningContentRichTextFactory(wagtail_factories.PageFactory):
|
|||
title = "Rich Text"
|
||||
minutes = 15
|
||||
content_url = ""
|
||||
description = ""
|
||||
description = RichText("")
|
||||
|
||||
class Meta:
|
||||
model = LearningContentRichText
|
||||
|
|
@ -167,7 +168,7 @@ class LearningContentAssignmentFactory(wagtail_factories.PageFactory):
|
|||
title = "Geleitete Fallarbeit"
|
||||
minutes = 15
|
||||
content_url = ""
|
||||
description = ""
|
||||
description = RichText("")
|
||||
|
||||
class Meta:
|
||||
model = LearningContentAssignment
|
||||
|
|
|
|||
Loading…
Reference in New Issue