Commits

Patrick Guido Arminio committed b7f3979

Cambio nome parametro per il numero di elementi per pagina.

Comments (0)

Files changed (2)

projectmensa/menu/api_views.py

     model = MenuOfTheDay
     serializer_class = MenuSerializer
     paginate_by = 10
-    paginate_by_param = 'page'
+    paginate_by_param = 'count'
 
 
 class MenuDetail(generics.SingleObjectAPIView):

projectmensa/menu/serializers.py

 from rest_framework import serializers
-from rest_framework.pagination import PaginationSerializer
 
 from .models import MenuOfTheDay