Advertisement
johnlockwood

sample model

Jun 8th, 2011
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. from google.appengine.ext import db
  2.  
  3. class WhatsIt(db.Model):
  4. title = db.StringProperty(verbose_name ="Title", required=False)
  5. description = db.TextProperty(verbose_name="Description")
  6.  
  7. def __str__(self):
  8. return "%s"%self.title
  9.  
  10. def __unicode__(self):
  11. return u'%s'%self.title
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement