Commit edc2c80f authored by Daniel W Bond's avatar Daniel W Bond

a big bug... unsure how it previously escaped attention

parent 4ae8ef39
......@@ -27,7 +27,7 @@ class DetailStudent(LoginRequiredMixin, DetailView):
total_exchanges = student_listings.filter(exchanged=True).count()
total_proceeds = Bid.objects.filter(listing__poster__user=self.get_object()).filter(listing__exchanged=True).aggregate(Sum('price'))['price__sum']
total_proceeds = Bid.objects.filter(listing__poster__user=self.get_object().user).filter(listing__exchanged=True).aggregate(Sum('price'))['price__sum']
student_ratings = Rating.objects.filter(listing__poster=self.get_object())
if student_ratings:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment