21308 Posts in 5737 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 593 Views |
-
ModelAdmin and Search problem

31 July 2010 at 6:50am Last edited: 31 July 2010 6:51am
Hi,
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
Mercedes
-
Re: ModelAdmin and Search problem

31 July 2010 at 8:42am
Hi again,
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!
| 593 Views | ||
|
Page:
1
|
Go to Top |

