Commit ce8393fc authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

use RichString

parent 42abf849d107
from cubicweb.schema import format_constraint
from cubicweb.schema import RichString
class Basket(MetaUserEntityType):
"""a basket contains a set of other entities"""
......@@ -11,9 +11,7 @@ class Basket(MetaUserEntityType):
name = String(required=True, indexed=True, internationalizable=True,
description_format = String(meta=True, internationalizable=True, maxsize=50,
default='text/rest', constraints=[format_constraint])
description = String(fulltextindexed=True)
description = RichString(fulltextindexed=True)
in_basket = ObjectRelation('*')
Supports Markdown
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