I have a models like
class MyModel(models.Model):
name = models.CharField()
updated_on = models.DateTimeField()
Now I am querying this like
m = MyModel.objets.get(id=2)
Here I want to check if the field is of certain type I want to do some stuff like
from django.db.models import DateTimeField
if isinstance(m.updated_on, DateTimeField):
// do something
But here I am getting false. Is there any workaround by which I can achieve this ??