Dapatkan data dari model dengan nama lapangan di django
field_name = "is_staff"
user = User.objects.get(pk=0)
field_name_val = getattr(user, field_name)
JThayil
field_name = "is_staff"
user = User.objects.get(pk=0)
field_name_val = getattr(user, field_name)