Skip to content

Django Tute: session count matches what is displayed #35423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

hamishwillee
Copy link
Collaborator

The value of num_visits in the Django tute was being fetched from session variable, updated, saved, and then displaying the last stored value. This was intentional, displaying "the number of visits you have done before this one". It is however not how most/many people would interpret the text ("what number visit is this to the page").

This changes the meaning to the second case, by making sure that what is stored in the variable and what is displayed matches.

This is the English fix to mdn/translated-content#23260

Associated demo code fix in mdn/django-locallibrary-tutorial#148

This will need to be pushed to the translation.

@hamishwillee hamishwillee requested a review from a team as a code owner August 13, 2024 00:22
@hamishwillee hamishwillee requested review from Elchi3 and removed request for a team August 13, 2024 00:22
@github-actions github-actions bot added the Content:Learn:Django Learning area Django docs label Aug 13, 2024
@github-actions github-actions bot added the size/s [PR only] 6-50 LoC changed label Aug 13, 2024
Copy link
Contributor

@Josh-Cena Josh-Cena merged commit d888ef9 into mdn:main Aug 13, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Learn:Django Learning area Django docs size/s [PR only] 6-50 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants