Models

Fully support ColanderAlchemy specification.

Columns

read only

Redefine widget for column with readonly attribute.

 class Venue(Base):
     __tablename__ = 'venue'
     id = Column(Integer, primary_key=True,
                          info={'colanderalchemy': {
                              'widget': deform.widget.TextAreaWidget(readonly=True)
                          }})

title

Change column title example:

 class Venue(Base):
     __tablename__ = 'venue'
     id = Column(Integer, primary_key=True,
                          info={'colanderalchemy': {
                              'widget': deform.widget.TextAreaWidget(readonly=True),
                              'title'='My id'
                          }})
  Read the Docs
v: latest  
Versions
latest
stable
Free document hosting provided by Read the Docs.