views:

39

answers:

0

I have a simple Django admin app with a search box that searches by last name. Then I filter by school and sort by year graduated to find lawyers that graduated from same school the same year. I want to simplify this three step process to a single search: enter lawyer last name and return other lawyers that graduated from same school the same year. Can you please point me in the right direction about how to achieve this?

Thank you.

EDIT1:

Can this be achieved with a script?

When someone enters a name A in the search box:

1. grab that name and search the database
2. grab the school S of A and year graduated Y 
3. now search for S and pull out all S with Y
4. print in the results page all S with Y except the A

EDIT2

Same question but without answer.