'I built a photo album on django using photos in models but now im trying to convert it to posts in order to allow for a comment section to be added

For the models page I have my Photo model here which I used to create a photo album with categories that let me add and delete photos from the album.

Models.py

class Photo(models.Model):
category=models.ForeignKey(Category,on_delete=models.SET_NULL,null=TRUE,blank=TRUE)
image=models.ImageField(null=False,blank=False)
description= models.TextField()

def __str__(self):
    return self.description

I am trying to add in a comment section within the admin interface that will go below each of the photos added and I am stuck on how to do this as all the other examples online use a post method without my categories and image and description fields. I also have a comment section that I tried to convert to but couldn't manage to get it to work

Models.py

class Comment(models.Model):
user = models.ForeignKey(UserProfile, related_name="profile", on_delete=models.CASCADE)
Photo = models.ForeignKey(Photo, related_name="Comments", on_delete=models.CASCADE)
text = models.TextField()
date = models.DateTimeField(auto_now_add=True)

def __str__(self):
    return self.user.user.username + ': ' +   self.text


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source