Given a model like so:
from google.appengine.ext import db
class X(db.Model):
p = db.StringProperty(verbose_name="Like π, but more modern.")
How does one access verbose_name from x=X()
(an instance of X
)?
One might expect that x.p.verbose_name
would work, or alternatively x.properties()['p'].verbose_name
, but neither seems to work.
Thanks!
EDIT: x.name.verbose_name => x.p.verbose_name