I'd like to do the following:
for table in table_list:
'table'.samefield = newvalue
I'd like to do the following:
for table in table_list:
'table'.samefield = newvalue
If you know the name of the application that it's in, then you can do
model = getattr(application_name.models, 'table')
model.somefield = newvalue
or just
getattr(application_name.models, 'table').somefield = newvalue
if you only want to access it once (although that doesn't really make any sense).
You can use the django contenttypes framework for this. Have a look at this link:
http://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/