0

I can't figure out how to use Django-RQ in a sample queryset:

class PartnerCatalogueView(generic.ListView):
    """
    Browse all products in the catalogue
    """
    template_name = 'catalogue/partner.html'
    paginate_by = 9
    model = Product
    context_object_name = 'prod'

    def get_queryset(self, **kwargs):
        queryset = super(PartnerCatalogueView, 
         self).get_queryset()
        queryset = queryset.filter(stockrecords__partner__id=self.kwargs['pk'])
         return queryset
Selcuk
  • 57,004
  • 12
  • 102
  • 110
takeiteasy
  • 61
  • 7
  • What behaviour were you expecting and what are you actually getting? – craigcaulfield May 17 '18 at 00:26
  • I want to display all the products that have the image, the images are taken from the dropbox storages and this process is very long, so I want to fix it via queue in django rq – takeiteasy May 17 '18 at 05:21

0 Answers0