feat: improved lighthouse reports
This commit is contained in:
+3
-1
@@ -250,8 +250,10 @@ class MyAccountView(TemplateView):
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
addresses = CustomerAddress.objects.filter(user=self.request.user)
|
||||
settings = WebSettings.load()
|
||||
web_settings = WebSettings.load()
|
||||
return {
|
||||
"title": f"{web_settings.web_title} - Mi cuenta",
|
||||
"description": f"{web_settings.web_title} - Mi cuenta",
|
||||
"customer_addresses": addresses,
|
||||
}
|
||||
|
||||
|
||||
@@ -77,6 +77,7 @@ class CartDetail(TemplateView, CreateView):
|
||||
cart_items = CartItem.objects.filter(cart=cart).prefetch_related("product")
|
||||
|
||||
return {
|
||||
"title": web_settings.web_title,
|
||||
"cart": cart,
|
||||
"items": cart_items,
|
||||
"description": _("resumen del carrito"),
|
||||
|
||||
Reference in New Issue
Block a user