Skip to content

Commit

Permalink
[es] fix example in Learn/Server-side/Django/Sessions (#23305)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker8 authored Aug 30, 2024
1 parent b006e16 commit 63b744a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/es/learn/server-side/django/sessions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 63b744a

Please sign in to comment.