Fixed and debugged object_search to more generically search for any attribute name except 'key' (issue110). Also included alias-search as a last-resort if normal searches fail. This is now also working for global searches (issue106).

This commit is contained in:
Griatch 2010-09-12 15:07:12 +00:00
parent 7e736d19e2
commit 8bedd4d793
5 changed files with 184 additions and 176 deletions

View file

@ -24,6 +24,7 @@ class AttributeManager(models.Manager):
return self.filter(db_obj=obj).filter(
db_key__icontains=searchstr)
#
# helper functions for the TypedObjectManager.
#