Skip to content

Instantly share code, notes, and snippets.

@lig
Created February 21, 2013 08:49
Show Gist options
  • Save lig/5003311 to your computer and use it in GitHub Desktop.
Save lig/5003311 to your computer and use it in GitHub Desktop.
class CharacterName(EmbeddedDocument):
first = StringField()
last = StringField()
class Character(Document):
name = EmbeddedDocumentField(CharacterName)
rating = IntField()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment