Commit 1b6eaea5 authored by's avatar
Browse files

use rich string

parent 063cd90e7a8a
from cubicweb.schema import format_constraint
class Person(EntityType):
"""a physical person"""
......@@ -8,10 +6,8 @@ class Person(EntityType):
civility = String(required=True, internationalizable=True,
vocabulary=(_('Mr'), _('Ms'), _('Mrs')),
description_format = String(meta=True, internationalizable=True, maxsize=50,
default='text/rest', constraints=[format_constraint])
description = String(fulltextindexed=True)
description = RichString(fulltextindexed=True)
if 'PhoneNumber' in defined_types: # from addressbook package
phone = SubjectRelation('PhoneNumber', composite='subject')
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