Commit 5a705ae2 authored by Élodie Thiéblin's avatar Élodie Thiéblin
Browse files

WIP: create YAMS type to show EditorJsString in schema

parent 413568b499a9
Pipeline #54752 failed with stage
in 55 seconds
......@@ -21,18 +21,32 @@ from yams.constraints import BoundaryConstraint
from yams import MARKER
def EditorJsString(
class EditorJsString(String):
etype = "EditorJsString"
def __init__(
required: bool = False,
formula=MARKER,
override: bool = False,
**kwargs,
):
return String(
required=required,
):
super().__init__(required=required,
formula=formula,
override=override,
**kwargs,
)
**kwargs)
# def EditorJsString(
# required: bool = False,
# formula=MARKER,
# override: bool = False,
# **kwargs,
# ):
# return String(
# required=required,
# formula=formula,
# override=override,
# **kwargs,
# )
class Museum(EntityType):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment