Display user information with their corresponding profile picture in a table [duplicate]
I want to display user information from Django default User model in the table with their profile picture
my Profile model is
class Profile(models.Model):
user = models.OneToOneField(User, null=True, blank=True, on_delete=models.CASCADE)
forget_password_token = models.CharField(max_length=100)
image = models.ImageField(upload_to="images",default="default/user.png")
def __str__(self):
return f'{self.user} profile'
` I want to do like this user data in the profile column i want to display user profile picture
please help me to achieve this