|
|
|
|
359
|
)
|
359
|
)
|
360
|
label = marshmallow.fields.Str(example='Intervention Report 12')
|
360
|
label = marshmallow.fields.Str(example='Intervention Report 12')
|
361
|
content_type = marshmallow.fields.Str(
|
361
|
content_type = marshmallow.fields.Str(
|
362
|
- example='html-content',
|
|
|
|
|
362
|
+ example='html-documents',
|
363
|
validate=OneOf([content.slug for content in CONTENT_DEFAULT_TYPE]),
|
363
|
validate=OneOf([content.slug for content in CONTENT_DEFAULT_TYPE]),
|
364
|
)
|
364
|
)
|
365
|
sub_content_types = marshmallow.fields.List(
|
365
|
sub_content_types = marshmallow.fields.List(
|
|
|
|
|
413
|
|
413
|
|
414
|
class HtmlDocumentContentSchema(ContentSchema):
|
414
|
class HtmlDocumentContentSchema(ContentSchema):
|
415
|
content_type = marshmallow.fields.Str(
|
415
|
content_type = marshmallow.fields.Str(
|
416
|
- example='html-content',
|
|
|
|
|
416
|
+ example='html-documents',
|
417
|
validate=OneOf([content.slug for content in CONTENT_DEFAULT_TYPE]),
|
417
|
validate=OneOf([content.slug for content in CONTENT_DEFAULT_TYPE]),
|
418
|
)
|
418
|
)
|
419
|
raw_content = marshmallow.fields.String('<p>Html page Content!</p>')
|
419
|
raw_content = marshmallow.fields.String('<p>Html page Content!</p>')
|
|
|
|
|
443
|
|
443
|
|
444
|
class HtmlDocumentRevisionSchema(RevisionSchema):
|
444
|
class HtmlDocumentRevisionSchema(RevisionSchema):
|
445
|
content_type = marshmallow.fields.Str(
|
445
|
content_type = marshmallow.fields.Str(
|
446
|
- example='html-content',
|
|
|
|
|
446
|
+ example='html-documents',
|
447
|
validate=OneOf([content.slug for content in CONTENT_DEFAULT_TYPE]),
|
447
|
validate=OneOf([content.slug for content in CONTENT_DEFAULT_TYPE]),
|
448
|
)
|
448
|
)
|
449
|
raw_content = marshmallow.fields.String('<p>Html page Content!</p>')
|
449
|
raw_content = marshmallow.fields.String('<p>Html page Content!</p>')
|