From 63b744a144f6b5e7e54bdbf86ec3e44c5ebe4ac0 Mon Sep 17 00:00:00 2001 From: seeker Date: Fri, 30 Aug 2024 10:20:26 -0400 Subject: [PATCH] [es] fix example in Learn/Server-side/Django/Sessions (#23305) --- files/es/learn/server-side/django/sessions/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/es/learn/server-side/django/sessions/index.md b/files/es/learn/server-side/django/sessions/index.md index 249e7844c342f0..667cd63666de02 100644 --- a/files/es/learn/server-side/django/sessions/index.md +++ b/files/es/learn/server-side/django/sessions/index.md @@ -123,7 +123,8 @@ def index(request): # Numero de visitas a esta view, como está contado en la variable de sesión. num_visits = request.session.get('num_visits', 0) - request.session['num_visits'] = num_visits + 1 + num_visits += 1 + request.session['num_visits'] = num_visits context = { 'num_books':num_books,