old_contents: from server.documents import Vote, User, Stuff, UserStuff
  from rest_framework_mongoengine.serializers import DocumentSerializer
  from rest_framework.fields import EmailField
  
  class VoteSerializer(DocumentSerializer):
      class Meta:
          model = Vote
          depth = 1
          fields = ('id', 'stuff', 'pips', 'user', 'comment')
          read_only_fields = ('id',)
  
  class UserSerializer(DocumentSerializer):
      class Meta:
          model = User
          read_only_fields = ('id')
          extra_kwargs = {'followed': {'write_only': True}}
          fields = ('id', 'username', 'email', 'twitter_id', "followed")
          read_only_fields = ('id',)
  
  class StuffSerializer(DocumentSerializer):
      class Meta:
          model = Stuff
          fields = ('stuff_id', 'title', 'year', 'image', 'description', 
              'average')
          read_only_fields = ('average',)
  
  class UserStuffSerializer(DocumentSerializer):
      votes = VoteSerializer(many=True)
      class Meta:
          model = UserStuff
          fields = ('stuff', 'user', 'average', 'votes')
          depth = 1
          read_only_fields = ('average', 'votes')
new_contents: from server.documents import Vote, User, Stuff, UserStuff
  from rest_framework_mongoengine.serializers import DocumentSerializer
  from rest_framework.fields import EmailField
  
  class VoteSerializer(DocumentSerializer):
      class Meta:
          model = Vote
          depth = 1
          fields = ('id', 'stuff', 'pips', 'user', 'comment')
          read_only_fields = ('id',)
  
  class UserSerializer(DocumentSerializer):
      class Meta:
          model = User
          read_only_fields = ('id')
          extra_kwargs = {'followed': {'write_only': True}}
          fields = ('id', 'username', 'email', 'twitter_id', "followed")
          read_only_fields = ('id',)
  
  class StuffSerializer(DocumentSerializer):
      class Meta:
          model = Stuff
          fields = ('stuff_id', 'title', 'year', 'image', 'description', 
              'average')
          read_only_fields = ('average',)
  
  class UserStuffSerializer(DocumentSerializer):
      votes = VoteSerializer(many=True, read_only=True)
      class Meta:
          model = UserStuff
          fields = ('stuff', 'user', 'average', 'votes')
          depth = 1
          read_only_fields = ('average', 'votes')
subject: make vote read only