from oscar.apps.catalogue.search_handlers import *
from oscar.core.loading import get_class, get_model

Product = get_model('catalogue', 'Product')



class SimpleProductSearchHandler(SimpleProductSearchHandler):
    def get_queryset(self):
        qs = Product.browsable.base_queryset().order_by("orden")
        if self.categories:
            qs = qs.filter(categories__in=self.categories).distinct()
        return qs

e8f4a5d5ce2eba1a20d9fdf1f90e172b5a5b6d72
<mask token>


class SimpleProductSearchHandler(SimpleProductSearchHandler):
    <mask token>

<mask token>


class SimpleProductSearchHandler(SimpleProductSearchHandler):

    def get_queryset(self):
        qs = Product.browsable.base_queryset().order_by('orden')
        if self.categories:
            qs = qs.filter(categories__in=self.categories).distinct()
        return qs

<mask token>
Product = get_model('catalogue', 'Product')


class SimpleProductSearchHandler(SimpleProductSearchHandler):

    def get_queryset(self):
        qs = Product.browsable.base_queryset().order_by('orden')
        if self.categories:
            qs = qs.filter(categories__in=self.categories).distinct()
        return qs

from oscar.apps.catalogue.search_handlers import *
from oscar.core.loading import get_class, get_model
Product = get_model('catalogue', 'Product')


class SimpleProductSearchHandler(SimpleProductSearchHandler):

    def get_queryset(self):
        qs = Product.browsable.base_queryset().order_by('orden')
        if self.categories:
            qs = qs.filter(categories__in=self.categories).distinct()
        return qs

from oscar.apps.catalogue.search_handlers import *
from oscar.core.loading import get_class, get_model

Product = get_model('catalogue', 'Product')



class SimpleProductSearchHandler(SimpleProductSearchHandler):
    def get_queryset(self):
        qs = Product.browsable.base_queryset().order_by("orden")
        if self.categories:
            qs = qs.filter(categories__in=self.categories).distinct()
        return qs
