So the main way, would be to actually use each field you want to display within the template:
{{% for query in queries %} <p>{{ query.title }} - {{ query.description }} - {{ query.price }} - {{ query.category }}<p> {% endfor %}If you don't want to do that, you can try (I haven't actually tested this, I'm just guessing it'll work) using the __str__() method to describe what your object looks like as a string:
class NewPost(models.Model): title = models.CharField(max_length=64) description = models.CharField(max_length=64) price = models.IntegerField() category = models.CharField(max_length=64) def __str__(self): return f"{self.title} - {self.description} - {self.price} - {self.category}"