Re: extract keywords from model

2006-08-23 Thread richard mendes
Thanks i will take a look at it and see if i can use it. richard --~--~-~--~~~---~--~~ 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 unsubscri

Re: extract keywords from model

2006-08-22 Thread limodou
On 8/23/06, richard mendes <[EMAIL PROTECTED]> wrote: > > Barry, > > Actually what i was thinking is to get a list with the keywords and > then go with a forloop threw all keywords and get the values from a > dictionary where the key's are the same as the keywords only in field > names. > > so wha

Re: extract keywords from model

2006-08-22 Thread richard mendes
Barry, Actually what i was thinking is to get a list with the keywords and then go with a forloop threw all keywords and get the values from a dictionary where the key's are the same as the keywords only in field names. so what i thought was get the keywords and do the following keywords = [ all

Re: extract keywords from model

2006-08-22 Thread spacedman
[EMAIL PROTECTED] wrote: > thanks, > > that worked > > richard Ah, now I see my confusion. What you wanted was the 'field names', not 'keywords', and you said: [result_id,lab_id] when you really meant ['result_id','lab_id']. Barry --~--~-~--~~~---~--~~ You rec

Re: extract keywords from model

2006-08-21 Thread [EMAIL PROTECTED]
thanks, that worked richard --~--~-~--~~~---~--~~ 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 [

Re: extract keywords from model

2006-08-21 Thread limodou
On 8/21/06, richard mendes <[EMAIL PROTECTED]> wrote: > > Thanks for all advices, > > I looked at the objects.values() from the api before and that's what i > want. The only problem there is that it will give you back a empty > list when there are no values in de DB. > > Offcourse there is a optio

Re: extract keywords from model

2006-08-21 Thread richard mendes
Thanks for all advices, I looked at the objects.values() from the api before and that's what i want. The only problem there is that it will give you back a empty list when there are no values in de DB. Offcourse there is a option to put some values in the DB to begin with but that's not really a

Re: extract keywords from model

2006-08-21 Thread limodou
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.Integer

Re: extract keywords from model

2006-08-21 Thread spacedman
[EMAIL PROTECTED] wrote: > 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

Re: extract keywords from model

2006-08-21 Thread Kenneth Gonsalves
On 21-Aug-06, at 4:16 PM, [EMAIL PROTECTED] wrote: > 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) > la

extract keywords from model

2006-08-21 Thread [EMAIL PROTECTED]
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