Answer the question
In order to leave comments, you need to log in
How to set the date of the user's last activity in a Django template?
Hello. I have this view in views.py:
def clients_all_view(request):
group = Group.objects.get(name='clients')
list_clients = group.user_set.all().order_by('-id')
context = {
'title': 'Список всех клиентов',
'personal': True,
'clients': list_clients,
}
return render(request, 'personal/clients.html', context=context)
<td class="text-center">{{ client.username }}</td>
<td class="text-center">{{ client.get_full_name }}</td>
<td class="text-center">{{ client.date_joined }}</td>
<td class="text-center">{{ client.ЧЕГО_ТУТ_ПРОПИСАТЬ?}}</td>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question