class MailMessage(db.Model):
    m_text = db.TextProperty()
m_from = db.ReferenceProperty(reference_class=UserModel)
m_to = db.ReferenceProperty(reference_class=UserModel)
Appengine - Upgrading from standard DB to NDB - ReferenceProperties