Re: Get table name at runtime

2008-05-17 Thread mwebs
Perfect! that is what I was searching for!!! Thanks, Toni On 17 Mai, 09:50, Matthias Kestenholz <[EMAIL PROTECTED]> wrote: > Hi, > > On Sat, 2008-05-17 at 00:44 -0700, mwebs wrote: > > Hi, > > > is there any possibility to get the db table name of a model instance > > at runtime > > (news.get_t

Re: Get table name at runtime

2008-05-17 Thread Matthias Kestenholz
Hi, On Sat, 2008-05-17 at 00:44 -0700, mwebs wrote: > Hi, > > is there any possibility to get the db table name of a model instance > at runtime > (news.get_table_name())? Yes: News._meta.db_table and news_object._meta.db_table both work. I think that _meta is an implementation detail however

Get table name at runtime

2008-05-17 Thread mwebs
Hi, is there any possibility to get the db table name of a model instance at runtime (news.get_table_name())? Thanks, Toni --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou