custom element in search_field [admin class]

6 views
Skip to first unread message

Iapain

unread,
Jun 5, 2007, 8:57:30 PM6/5/07
to Django developers
Hi,

I was wondering if we can specify our own custom element like function
in *search_field* in Admin class. e.g

class Student(models.Model):
name = models.CharField(maxlength=255)

class Admin:
search_list = ['name', 'my_custom_list_or_object_row']

def my_custom_list_or_object_row(self):
do something here
return list / sqlobject.mycolum

is there exist any way to specify custom element in search_list?

Malcolm Tredinnick

unread,
Jun 6, 2007, 12:09:40 AM6/6/07
to django-d...@googlegroups.com

A question that would be ideal to ask on the django-users list. This
list is for internal django-development, django-users is for user
questions. We try very hard to keep the two separate so that everybody
benefits from seeing (only) the appropriate messages.

Regards,
Malcolm


Reply all
Reply to author
Forward
0 new messages