On 8/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hello django users,
>
> sorry for this probably simple question but i couldn't find the answer
> in the api nor this forum.
>
> suppose i have a model with 2 keywords like
>
> class Test(models.Model):
>        result_id = models.IntegerField(maxlength=10)
>         lab_id = models.IntegerField(maxlength=10)
>
> is there a method to extract all the keywords from this class.
> So in this example i actually want [result_id,lab_id]
>
> thanks in advance for your help
>
> richard
>
maybe Test._meta.fields.keys()

-- 
I like python!
My Blog: http://www.donews.net/limodou
My Django Site: http://www.djangocn.org
NewEdit Maillist: http://groups.google.com/group/NewEdit

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to