Skip to content
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

Develop #804

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Develop #804

wants to merge 3 commits into from

Conversation

dpiuro
Copy link

@dpiuro dpiuro commented Sep 16, 2024

No description provided.

@dpiuro
Copy link
Author

dpiuro commented Sep 16, 2024

Знімок екрана 2024-09-11 091714
Знімок екрана 2024-09-11 091645
Знімок екрана 2024-09-11 091622

taxi/views.py Outdated
@@ -1,12 +1,21 @@
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.utils.decorators import method_decorator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you use it?

taxi/views.py Outdated
Comment on lines 14 to 17
if "num_visits" not in request.session:
request.session["num_visits"] = 0

request.session["num_visits"] += 1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use .get method instead

@dpiuro dpiuro requested a review from MNDonut September 16, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants