(self, field_name, path="")
return "Invalid"
Get field type for given field name.
        field_name is the full path of the field
        path is optional
Get field type for given field name.
        field_name is the full path of the field
        path is optional
Get field type for given field name . field_name is the full path of the field path is optional
def get_field_type(self, field_name, path=""):
        """ Get field type for given field name.
        field_name is the full path of the field
        path is optional
        """
        model = get_model_from_path_string(
            self.root_model_class, path + field_name)

        # Is it a ORM field?
        try:
            return model._meta.get_field(field_name).get_internal_type()
        except FieldDoesNotExist:
            pass
        # Is it a property?
        field_attr = getattr(model, field_name, None)
        if isinstance(field_attr, (property, cached_property)):
            return "Property"
        # Is it a custom field?
        try:
            model().get_custom_field(field_name)
            return "Custom Field"
        except (ObjectDoesNotExist, AttributeError):
            pass
        return "Invalid"
def get_field_type ( self , field_name , path = "" ) : model = get_model_from_path_string ( self . root_model_class , path + field_name ) # Is it a ORM field? try : return model . _meta . get_field ( field_name ) . get_internal_type ( ) except FieldDoesNotExist : pass # Is it a property? field_attr = getattr ( model , field_name , None ) if isinstance ( field_attr , ( property , cached_property ) ) : return "Property" # Is it a custom field? try : model ( ) . get_custom_field ( field_name ) return "Custom Field" except ( ObjectDoesNotExist , AttributeError ) : pass return "Invalid"