remove pagination

This commit is contained in:
a.gorbunov 2020-01-30 10:36:22 +00:00
parent 13968b3ed7
commit eabb550f62
2 changed files with 6 additions and 1 deletions

View File

@ -7,8 +7,8 @@ from collection.views import back as views
app_name = 'collection'
router = SimpleRouter()
router.register(r'collections\/all', views.CollectionBackOfficeList)
router.register(r'collections', views.CollectionBackOfficeViewSet)
urlpatterns = [
path('guides/', views.GuideListCreateView.as_view(),
name='guide-list-create'),

View File

@ -94,6 +94,11 @@ class CollectionBackOfficeViewSet(mixins.CreateModelMixin,
collection.products.remove(related_object)
class CollectionBackOfficeList(CollectionBackOfficeViewSet):
"""ViewSet for Collections list for BackOffice users and Collection create."""
pagination_class = None
class GuideListCreateView(GuideBaseView,
generics.ListCreateAPIView):
"""View for Guides list for BackOffice users and Guide create."""