Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 March 26, 2008 07:05:12

d.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Implement 2 templates in 1


hi,
I have a candidate model and a voting model.
Voting model is basically thumps up and down.

I want to show my voting status in my Candidate profile..
Right now this is what I am doing
1) /template/ candidate/view_candidatelist.html
2) /template/vote/ view_vote.html

view_candidatelist gives me the list of candidate.
view_vote/<candidate_id> gives me the voting status for that
particular candidate.

My question is how can I display my voting status in my candidatelist.

View function for vote return the:
render_to_response('templates/vote/view_vote.html',
{'thumbsup_count': tu_count,
'thumbsdown_count':td_count}

view function for candidate:
return render_to_response('templates/view_candidatelist.html',

{'candidateprofile_list':candidateprofile_list})

So what should I do to display voting status in candidatelist????

Thanks..

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

Offline

Board footer

Moderator control

Enjoy the 16th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support