get model data with field name in django code example
Example 1: django load model by name
from django.apps import apps
user = apps.get_model(app_label='auth', model_name='User')
# Can also support syntax like 'auth.User' passing a single parameter
user = apps.get_model('auth.User')
Example 2: django model get field verbose name
model._meta.get_field('location_x').verbose_name