from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from rest_framework import serializers


class ProfileSerializer(serializers.ModelSerializer):
    url = serializers.SerializerMethodField('get_profile_url')

    class Meta:
        model = User
        fields = ('id', 'url', 'username')

    def get_profile_url(self, obj):
        return reverse('member_profile', args=(obj.id,))

@@ -37,16 +37,18 @@
 rt User%0A
+# 
 from dja
@@ -182,16 +182,18 @@
 er):%0A   
+ #
  url = s
@@ -243,16 +243,79 @@
 le_url')
+%0A    message = serializers.SerializerMethodField('get_message')
 %0A%0A    cl
@@ -352,16 +352,18 @@
 %0A       
+ #
  fields 
@@ -389,21 +389,53 @@
 ername')
+%0A        fields = ('message',)
 %0A%0A   
+ #
  def get
@@ -458,24 +458,26 @@
 f, obj):%0A   
+ #
      return 
@@ -518,8 +518,91 @@
 j.id,))%0A
+%0A    def get_message(self, obj):%0A        return 'profiles are not yet implemented'%0A

Make /api/profile return no private data