def render(self, context):
        request = context.get("request")

        products = Product.objects.filter(for_sale=True)
        if self.current_category:
            obj = context.get("category") or context.get("product")
            if obj:
                category = obj if isinstance(obj, Category) else obj.get_current_category(request)
                categories = [category]
                categories.extend(category.get_all_children())
                products = products.filter(categories__in=categories)[:self.limit]
            else:
                products = None
        else:
            products = products[:self.limit]

        return render_to_string("lfs/portlets/forsale.html", RequestContext(request, {
            "title": self.rendered_title,
            "slideshow": self.slideshow,
            "products": products,
            "MEDIA_URL": context.get("MEDIA_URL"),
        }))
Translates the geometry to a new location using the given numeric
dataset/ETHPy150Open diefenbach/django-lfs/lfs/portlet/models/forsale.py/ForsalePortlet.render--crossover with--dataset/ETHPy150Open django/django/django/contrib/gis/db/models/query.py/GeoQuerySet.translate