I have the following code for my url field:
model = MyModel()
field = model._meta.get_field_by_name('my_url_field')[0]
my_type = field.get_internal_type()
print my_type
This prints:
CharField
How can I get the django value of URLField?
I have the following code for my url field:
model = MyModel()
field = model._meta.get_field_by_name('my_url_field')[0]
my_type = field.get_internal_type()
print my_type
This prints:
CharField
How can I get the django value of URLField?