Skip to content

Instantly share code, notes, and snippets.

@mikeywaites
Last active November 29, 2017 05:56
Show Gist options
  • Save mikeywaites/75f03897ec383fc506f4b1895d0c21d4 to your computer and use it in GitHub Desktop.
Save mikeywaites/75f03897ec383fc506f4b1895d0c21d4 to your computer and use it in GitHub Desktop.
from kim import field, role
from .base import BaseMapper
from star_wars.models import User, UserCharacterLike
class UserCharacterLikeMapper(BaseMapper):
__type__ = UserCharacterLike
character = field.Nested('CharacterMapper', read_only=True)
user = field.Nested('UserMapper', read_only=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment