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
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
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
3 matches
Mail list logo