el example:
>>
>> class Model1(models.Model):
>>
>> text_field =models.TextField(max_length=250)
>> fek_field = models.ForeignKey('Model2')
>>
>> class Model2(models.Model):
>> text_field = models.TextField(max_length=250)
>>
>&
ch on model, everything goes fine
>>> >> when
>>> >> searching TextFields but I have a problem with ForeignKey field.
>>>
>>> >> How can i do that? Can anyone point me to the right direction?
>>>
>>> >> Thanks
>>>
>>> &g
t;> >> searching TextFields but I have a problem with ForeignKey field.
>>>
>>> >> How can i do that? Can anyone point me to the right direction?
>>>
>>> >> Thanks
>>>
>>> >> Model example:
>>>
>>>
models.Model):
>>
>> >> text_field =models.TextField(max_length=250)
>> >> fek_field = models.ForeignKey('Model2')
>>
>> >> class Model2(models.Model):
>> >> text_field = models.TextField(max_length=250)
>&g
t;> class Model1(models.Model):
>
> >> text_field =models.TextField(max_length=250)
> >> fek_field = models.ForeignKey('Model2')
>
> >> class Model2(models.Model):
> >> text_field = models.TextField(max_length=250)
>
> >> --
&g
fek_field = models.ForeignKey('Model2')
>>
>> class Model2(models.Model):
>> text_field = models.TextField(max_length=250)
>>
>> --
>> View this message in
>> context:http://old.nabble.com/Django-Sphinx-Foreign-key-search-tp28219147p282...
>> Sent
to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
>
--
View this message in context:
http://old.nabble.com/Djang
On 13/04/10 09:04, urukay wrote:
Hi,
I'm trying to create full text search on model, everything goes fine
when
searching TextFields but I have a problem with ForeignKey field.
How can i do that? Can anyone point me to the right direction?
Do you mean you want the results for Model2 searches
l2')
>
> class Model2(models.Model):
> text_field = models.TextField(max_length=250)
>
> --
> View this message in
> context:http://old.nabble.com/Django-Sphinx-Foreign-key-search-tp28219147p282...
> Sent from the django-users mailing list archive at Nabble.com.
--
You
(max_length=250)
fek_field = models.ForeignKey('Model2')
class Model2(models.Model):
text_field = models.TextField(max_length=250)
--
View this message in context:
http://old.nabble.com/Django-Sphinx-Foreign-key-search-tp28219147p282...
Sent from the django-users mailing list archive
(max_length=250)
fek_field = models.ForeignKey('Model2')
class Model2(models.Model):
text_field = models.TextField(max_length=250)
--
View this message in context:
http://old.nabble.com/Django-Sphinx-Foreign-key-search-tp28219147p28219147.html
Sent from the django-users mailing list
11 matches
Mail list logo