Created
February 21, 2013 08:49
-
-
Save lig/5003311 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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