Do you mean something like Publisher._meta.fields? Erik
On 21.08.2008, at 22:38, Alexis Bellido wrote: > > Hello, I'm reading the Django book and after reviewing the database > API I was wondering if there was some method to find out which fields > a model contains. > > For example, if I have a Publisher model (which translates to a > publisher table in the database) I'm looking for some method in Django > equivalent to 'describe publisher' in MySQL or '\d publisher' in > PostgreSQL. > > Is there any Django method that allows me to do this? > > Thanks. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---