Given a model instance and the name of one of its fields as a string, how can I get/put a value in that field?

The methods might look like this ...

def get_value(obj, fldname):

    ...

    return value

def put_value(obj, fldname, value):

    pass


Thanks for any hints

Mike


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/514e1115-36b6-2e5f-f07e-68386927a1f1%40dewhirst.com.au.

Reply via email to