In Django, I can do this:
test = Test.objects.get(id=1)
test.name
I want to be able to access the properties using dynamically generated strings, like this:
test['name']
or, any other syntax using a string. I tried
test._meta.get_field_by_name('name')
but this returns the field itself and not the value.
Any ideas?