HF RL Explorer

TemplateView.get context data()'s kwargs returns SimpleLazyObjects that causes a crash when filtering…

TemplateView.get context data()'s kwargs returns SimpleLazyObjects that causes a crash when filtering…: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). Example Code that works in 3.0, but not in 3.1: class OfferView(TemplateView): template name = "offers/offer.html" def get context…

The task

Example Code that works in 3.0, but not in 3.1: class OfferView(TemplateView): template_name = "offers/offer.html" def get_context_data(self, **kwargs): offer_slug = kwargs.get("offer_slug", "") offer = get_object_or_404(Account, slug=offer_slug) return {"offer": offer, "offer_slug": offer_slug} In order to make this…

Part of Lego-X/Lego-RL-SWE-Bench-Verified.