我正在做以下工作:
model._meta.get_field('g').get_internal_type
它返回以下内容:
<bound method URLField.get_internal_type of <django.db.models.fields.URLField: g>>
我只想知道这个字段是"URLField".我如何从这个输出中提取出来呢?
Note: I am doing this so that I can do validation on the fields. For example if a url , I want to check if it is well formed.个