23001 Posts in 11702 Topics by 2827 members
|Go to End|
31 July 2010 at 6:50am Last edited: 31 July 2010 6:51am
I'm using ModelAdmin in my CMS, and I have a problem with the search form. I have a properties table, linked with a models table who is linked with a unit table. I mean, one properties has many models, and each model has many units.
The ModelAdmin has 3 managed models (properties, models and units), and the problem is when I have to search in units. I would like to search within the properties, and show the units that belongs to the property. I have try to do this with searchcontext, but this affects the other two searches as well (properties and models).
I don't know if there is any way to do that. Any help is really appreciated!
Thank you very much
31 July 2010 at 8:42am
I've found the solution by myself, I've been trying really complicated things instead the simplest of all: add in the searchable_fields the Models.PropertiesID
So it works!
|Go to Top|