Hi everybody,

I have a weird problem with a custom template tag I made. The template tag is built on top of django-voting app and provides upvote and downvote counts, while standard django-voting tags only provides total number of votes and score.

Here is the snippet I wrote: http://dpaste.com/722024/

I inserted a couple of "print"s and understood I have a problem when calling Vote.objects.get_score(object) from within the snippet.

Eg. I call Vote.objects.get_score() from the python shell and get {'score': 0, 'num_votes': 2}. Then I call it from the snippet against the same object and get {'score': 0, 'num_votes': 0}.

I really don't understand where the problem may lay. Any tips appreciated.

Cheers, Fabio.

--
Fabio Natali

--
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to