mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-23 01:59:49 +00:00
Added search bar
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user