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