Hello,
I’m trying to get a template to find out which model an object is, then add the name of the model type ti the page.
My model is:
class MyModel(models.Model):
etc....
Then my template is:
<h1> The model is: {{ my_object.class }} </h1>
Hopefully I’d get
The model is: MyModel
Would this work?
Many thanks.