djangoproject access fields of object dynamically
setattr(obj, fieldname, fieldvalue)
(see also getattr to retrieve at runtime)
Can anyone help me? 
I have list of fields called 'allowed_fields' and I have object called 'individual'.
allowed_fields is sub set of individual. Now I want to run loop like this   
for field in allowed_fields:
          obj.field = individual.field 
obj have same fields like individual. Do you have solution of my problem? I will thankful to you.