I am planning to build a demo prototype for a who-knows-who database
for the legal profession. Database will consist of lawyer name, school
and year graduated. Searching by lawyer name will return other lawyers
graduated from same law school the same year. Can I build this in
Django? How long would it take me to learn enough Django to build this
myself?
On 7 Lis, 15:58, Zeynel <azeyn...@gmail.com> wrote:
> Hello,
> I am planning to build a demo prototype for a who-knows-who database
> for the legal profession. Database will consist of lawyer name, school
> and year graduated. Searching by lawyer name will return other lawyers
> graduated from same law school the same year. Can I build this in
> Django? How long would it take me to learn enough Django to build this
> myself?
Of course you can build this in Django, I think that going through
tutorial:
<tomasz.zielin...@pyconsultant.eu> wrote:
> On 7 Lis, 15:58, Zeynel <azeyn...@gmail.com> wrote:
> > Hello,
> > I am planning to build a demo prototype for a who-knows-who database
> > for the legal profession. Database will consist of lawyer name, school
> > and year graduated. Searching by lawyer name will return other lawyers
> > graduated from same law school the same year. Can I build this in
> > Django? How long would it take me to learn enough Django to build this
> > myself?
> Of course you can build this in Django, I think that going through
> tutorial:
This search box searches only first and last names. But what i want is
a search box that finds all lawyers who went to same school. My
database now contains:
Tom T. Lawyer3 Columbia School of Law 2003
Bob Lawyer2 NYU 2000
John I Lawyer1 NYU 2000
So Lawyer1 and Lawyer2 graduated from NYU in 2000.
So I want to enter in the search box "Lawyer1" and in the result page
I want to see "Lawyer1 knows Lawyer2"
<tomasz.zielin...@pyconsultant.eu> wrote:
> On 7 Lis, 15:58, Zeynel <azeyn...@gmail.com> wrote:
> > Hello,
> > I am planning to build a demo prototype for a who-knows-who database
> > for the legal profession. Database will consist of lawyer name, school
> > and year graduated. Searching by lawyer name will return other lawyers
> > graduated from same law school the same year. Can I build this in
> > Django? How long would it take me to learn enough Django to build this
> > myself?
> Of course you can build this in Django, I think that going through
> tutorial:
> So I want to enter in the search box "Lawyer1" and in the result page > I want to see "Lawyer1 knows Lawyer2"
if your school is a foreign key (I think it is) you need a related name to search for that. Check out ModelAdmin.search_fields in the docs. Not sure that this is what you are looking for though. -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/
> On Wednesday 11 Nov 2009 5:51:00 am Zeynel wrote:> So I want to enter in the search box "Lawyer1" and in the result page
> > I want to see "Lawyer1 knows Lawyer2"
> if your school is a foreign key (I think it is) you need a related name to
> search for that. Check out ModelAdmin.search_fields in the docs. Not sure that
> this is what you are looking for though.
> --
> regards
> Kenneth Gonsalves
> Senior Project Officer
> NRC-FOSShttp://nrcfosshelpline.in/web/
Cannot resolve keyword 'lawyer_first' into field. Choices are: id,
lawyer, school
In the variations that I tried only
search_fields = ['school__school']
worked.
I followed the tutorial and arranged lawyer names as a list, so that
when I search for school, I see which lawyers went to that school and
their year of graduation. Then I have the filter by year, and when I
apply that filter, I see all the lawyers who graduated from same
school same year. This is the result that I want, but obviously not a
very elegant solution.
Thank you.
On Nov 11, 1:01 pm, "pjrhar...@gmail.com" <pjrhar...@gmail.com> wrote: