def kablist(request):
users_list = UserProfile.objects.all()
context = {
"title": "ListUser",
"users_list": users_list,
}
return render(request, 'view_user.html', context)
class UserProfile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)