I have two models. One is a list of candidates that have filed to run
for office. The second is a list of people who currently hold
office.

I'd like to compare the two tables and whenever a match is found
between the two (an entry in the candidate table shares the same
last_name and first_name with an office holder from the holds office
table) I'd like to check off a box in the Candidate table called
'incumbent'.

how would I begin to do this. They both have columns called last_name
and first_name that I can use to compare but I don't know the syntax.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to