Re: Switching the db_table on the fly

2007-03-26 Thread Wolfram Kriesing
On 3/26/07, Jeremy Bowers <[EMAIL PROTECTED]> wrote: > > Wolfram Kriesing wrote: > > 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 > > la

Re: Switching the db_table on the fly

2007-03-26 Thread Wolfram Kriesing
On 3/26/07, Honza Král <[EMAIL PROTECTED]> wrote: > On 3/26/07, Wolfram Kriesing <[EMAIL PROTECTED]> wrote: > > > > 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 >

Re: Switching the db_table on the fly

2007-03-26 Thread Jeremy Bowers
Wolfram Kriesing wrote: > 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. > Why do yo

Re: Switching the db_table on the fly

2007-03-26 Thread Honza Král
On 3/26/07, Wolfram Kriesing <[EMAIL PROTECTED]> wrote: > > 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_tabl

Switching the db_table on the fly

2007-03-26 Thread Wolfram Kriesing
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? An