Exemplo n.º 1
0
 def get_object_list(self, request):
     qs = MarketplaceModelResource.get_object_list(self, request)
     # Mature regions show only reviews from within that region.
     if not request.REGION.adolescent:
         qs = qs.filter(client_data__region=request.REGION.id)
     return qs
Exemplo n.º 2
0
 def get_object_list(self, request):
     qs = MarketplaceModelResource.get_object_list(self, request)
     # Mature regions show only reviews from within that region.
     if not request.REGION.adolescent:
         qs = qs.filter(client_data__region=request.REGION.id)
     return qs
Exemplo n.º 3
0
 def get_object_list(self, request):
     qs = MarketplaceModelResource.get_object_list(self, request)
     return qs.filter(user=request.amo_user, inactive=False)
Exemplo n.º 4
0
Arquivo: api.py Projeto: at13/zamboni
 def get_object_list(self, request):
     qs = MarketplaceModelResource.get_object_list(self, request)
     return qs.filter(user=request.amo_user, inactive=False)