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

implement(first try) #800

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

Conversation

Maksym-Turenko
Copy link

Снимок экрана 2024-09-11 220420
Снимок экрана 2024-09-11 220440
Снимок экрана 2024-09-11 221629

taxi/views.py Outdated
Comment on lines 51 to 58
def get_queryset(self):
queryset = super().get_queryset()
for driver in queryset:
if driver == self.request.user:
driver.is_current_user = True
else:
driver.is_current_user = False
return queryset
Copy link

Choose a reason for hiding this comment

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

can you compare it in template?

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