Computer scienceBackendDjangoDjango fixes

Built-in and custom mixins for Class Based Views

Paginated product parade in progress

Report a typo
Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
Fill in the blanks to create a Django view that displays a list of active products, sorted by creation date, with pagination. The view should use a custom template and context object name.
Fill in the gaps with the relevant elements
class ProductListView(, , ):
     = Product
    template_name = 'product_list.html'
    context_object_name = 'products'
     = 10
    ordering = ['-created_at']
    def get_queryset(self):
        return super().get_queryset().filter(is_active=True)

Create a free account to access the full topic