On Fri, Oct 2, 2009 at 8:18 AM, akonsu <[email protected]> wrote:

>
> hello,
>
> i have found an (undocumented?) way to get the db table name from a
> model: Model._meta..db_table.
>
> is there a way to get the name of the db column for a field?
>
>
Model._meta.get_field_by_name('<fieldname>')[0].column

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to