This commit is contained in:
nikolark committed 2015-11-30 11:29:25 +01:00
1 parent 6e11410972
commit 35835fc64f
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ class ProductViewSet(mixins.ListModelMixin,
queryset = Product.objects.all()
permission_classes = [AllowAny]
@list_route(methods=['get'])
@list_route(methods=['get'], permission_classes=[AllowAny])
def group_by_user(self, request):
products = self.get_queryset().filter(active=True)
serializer = ProductStatSerializer(products, many=True)