hi list, im experiencing problems with the rating functionality described in the code sharing site in the practical django projects book:
if i try to get the score of a snippet with {{ object.get_score }} in the template i get a result like: {'rating__sum': -2} why is that? def get_score(self): return self.rating_set.aggregate(Sum('rating')) this is the function i added to my Snippet model and the {{ rating.get_rating_display }} doesnt give me any output and no errors... does anyone know what the problem could be? or does anyone experieced those problems too and knows the solution for them? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---