Added search bar

This commit is contained in:
Fergal Moran
2013-06-30 15:42:47 +01:00
parent 1453720c9d
commit c519f16fc6
21 changed files with 2585 additions and 66 deletions

View File

@@ -41,7 +41,7 @@ class _BaseModel(models.Model):
def get_lookup_filter_field(cls):
field_list = cls._meta.get_all_field_names()
for field in field_list:
if field.endswith("name") or field.endswith("description"):
if field.endswith("title") or field.endswith("name") or field.endswith("description"):
return field
return "description"