I have a rating system, it works similar to Digg.com (as I would assume). I have two tables:
table a, scores id content_type (ForeignKey) object_id (Integer) score (Integer) table b, ratings id content_type (ForeignKey) object_id (Integer) user (ForeignKey) ip rating When someone rates an object, it inserts the rating into ratings, and then updates scores w/ the new total for that object. So far you can set_rating on an object, and get_rating on an object, but I need a way to pull multiple ratings at once. I'd like to do MyModel.objects_with_scores.all() for example, objects_with_scores being a manager that would join the two tables together. My problem is, I have no idea how to do this in django :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" 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-developers -~----------~----~----~----~------~----~------~--~---
