I would like to change the table of a model on the fly.
I was looking into the Manager code, but since the get_query_set()
method in there uses the model as is, changing the
model._meta.db_table would most probably change the db_table for all
users/threads, not only for the current one, right?

Any ideas on how this could be achieved?

The main reason I need this is that I want to have a transparent model
that switches the underlying language (the according DB table it
should work on) on the fly, so i can keep hacking away without
language switching before every access via my model.

-- 
cu

Wolfram

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to