title: Django REST Framework - how to get all posts or only user's posts
body: <p>everyone!</p>
  
  <p>models.py:</p>
  
  <p><a href="http://pastebin.com/j50AdayS" rel="nofollow">http://pastebin.com/j50AdayS</a></p>
  
  <p>serializers.py:</p>
  
  <p><a href="http://pastebin.com/1JZHUYRS" rel="nofollow">http://pastebin.com/1JZHUYRS</a></p>
  
  <p>views.py:</p>
  
  <p><a href="http://pastebin.com/AH9U6fmG" rel="nofollow">http://pastebin.com/AH9U6fmG</a></p>
  
  <p>url.py:</p>
  
  <pre><code>from .views import Register, UserList, UserDetail, PostList, PostDetail
  from rest_framework_jwt.views import obtain_jwt_token
  
  urlpatterns = [
      url(r'^register/$', Register.as_view()),
      url(r'^login/', obtain_jwt_token),
      url(r'^users/$', UserList.as_view(), name='user-list'),
      url(r'^users/(?P&lt;pk&gt;[0-9]+)/$', UserDetail.as_view(), name='user-detail'),
      url(r'^posts/$', PostList.as_view(), name='post-list'),
      url(r'^posts/(?P&lt;pk&gt;[0-9]+)/$', PostDetail.as_view(), name='post-detail'),
  ]
  </code></pre>
  
  <p>When I do request - http GET 127.0.0.1:8000/api/posts/ "Authorization: JWT blabla" - I get only the posts that belong to the user whose token I use in request.</p>
  
  <p>But I need one more option - to get the posts of all users (via token) as well.
  Please, help, how can I do this?</p>
  
  <p>Thanks!!! </p>