This seems like it should be dead simple, so I must be missing something. I just want to set the value of a field in my model instance by name. Say I have:
c
We may have to see more code.
setattr(f, 'bar', 'BAR')
should work as this is how Django does it internally.
Make sure you are calling 'save', as well.