title: Removing fields from django-rest-framework view
body: <p>is there any way to show only a list of fields or excluding some of them when using django-rest-framework?</p>
  
  <p>Here's my <code>app/views.py</code>:</p>
  
  <pre><code>from rest_framework.generics import ListAPIView
  from .models import PhpbbUsers
  
  class UsersReadView(ListAPIView):
      model = PhpbbUsers
  </code></pre>
  
  <p>Obiously there are some user information that I don't want to show to everyone. How could I do?</p>
  
  <p><strong>Solution code</strong></p>
  
  <pre><code>from rest_framework import generics, serializers
  from .models import PhpbbUsers
  
  class UsersSerializer(serializers.HyperlinkedModelSerializer):
      class Meta:
          model = PhpbbUsers
          fields = ('user_id', 'username', 'user_avatar')
  
  class UsersReadView(generics.ListAPIView):
      model = PhpbbUsers
      serializer_class = UsersSerializer
  </code></pre>