title: Why does Django REST Framework return empty list?
body: <p>On production, we have implemented simple Django REST, which returns all objects from a database:</p>
  
  <p>urls.py:</p>
  
  <pre><code>router = routers.DefaultRouter(trailing_slash=False)
  router.register(r'clubs', views.ClubViewSet)
  
  urlpatterns = patterns(
      '',
      url(r'^', include(router.urls)),
      url(r'^filters/', views.ClubFilterView.as_view())
  )
  </code></pre>
  
  <p>views.py:</p>
  
  <pre><code>from .serializers import ClubSerializer, ClubFilterSerializer
  from .models import (Club, ImageForClub, ClubStaff, ClubFilter,
                       Metro, Rajon, Okrug, Street, Rajon, Rubric, Equipment)
  class ClubViewSet(generics.ListAPIView, viewsets.GenericViewSet):
      queryset = Club.objects.filter(latitude__isnull=False)
      throttle_classes = (throttling.ScopedRateThrottle,)
      filter_backends = (filters.SearchFilter,)
      search_fields = ('title',)
      serializer_class = ClubSerializer
      pagination_class = None
      paginate_by = None
  </code></pre>
  
  <p>In production, it works just fine. But when I try to deploy it on my local MacBook Air, it starts to behave itself strangely:</p>
  
  <p>in python manage.py shell I can receive objects from the database:</p>
  
  <pre><code>In [5]: from apps.clubs.models import Club
  
  In [6]: x = Club.objects.get(pk=1)
  
  In [7]: x
  Out[7]: &lt;Club: Pattana Sport&gt;
  </code></pre>
  
  <p>but when I try to send request to Django REST the way on the picture, all I receive is an empty list:</p>
  
  <p><a href="https://i.stack.imgur.com/1aSIq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1aSIq.png" alt="enter image description here"></a></p>
  
  <p>Despite the fact that the same reguest on production returns list of all objects in database. I'm using the same database - postgres, I dumped and restored the database from production to local computer using this command:</p>
  
  <pre><code>$ sudo su - postgres 
  $ psql [database_name] &lt;&lt; file_dump.sql
  </code></pre>
  
  <p>after that I granted users which Django uses to login by all privileges on this database.</p>
  
  <p>What am I doing wrong? And how to debug this strange behavior? I've checked everything I could... </p>