Skip to content

Instantly share code, notes, and snippets.

@kennx
Created October 26, 2011 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennx/1315876 to your computer and use it in GitHub Desktop.
Save kennx/1315876 to your computer and use it in GitHub Desktop.
class Author (models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=40)
email = models.EmailField(blank=True,verbose_name=u'电子邮箱')
def __unicode__(self):
return u'%s %s' % (self.first_name, self.last_name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment