0

django: get inner type of model field value

obj.__class__._meta.get_field('fieldname').get_internal_type()

source: Can i get models field type from a model queryset in Django? – Stack Overflow