Sorry.... By mistake I typed as "search_field" , it was
"search_fields" actually in the code

On Jul 1, 11:24 am, Marcelo Ramos <marce...@gmail.com> wrote:
> On Wed, Jul 1, 2009 at 2:29 AM, Harish<harish.bha...@gmail.com> wrote:
>
> > hi friends,
> >    I designed a model in django, which has a Integer field. When I
> > include the integer field in the search_list, the searching is not
> > working. I am using django 0.97 (when I gave 'django.VERSION' in
> > python interpreter it gave me (0, 97, 'pre') ).
>
> > the code is as follows
>
> > class Person(models.Model):
> >     name=models.CharField('Name',max_length=20)
> >     rollNo=models.IntegerField('Roll No', maxloength=12)
>
> >     def __unicode__(self):
> >            return self.name
>
> >     class Admin:
> >         list_display=('name','rollNo')
> >         search_field=['name','rollNo']
>
> The keyword name is "search_fields" and you are using "search_field".
>
> --
> Marcelo Ramos
> Django/Python developer
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to