Skip to content

Commit

Permalink
Merge branch 'dev' into issue6372b
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-D authored Aug 12, 2022
2 parents 19773fd + b597425 commit d27c5e2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions zds/mp/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,7 @@ def set_user_vote(self, user, vote):
def get_votes(self):
"""Get the non-anonymous votes"""
if not hasattr(self, "votes"):
self.votes = (
PrivatePostVote.objects.filter(private_post=self, id__gt=settings.VOTES_ID_LIMIT)
.select_related("user")
.all()
)
self.votes = PrivatePostVote.objects.filter(private_post=self).select_related("user").all()

return self.votes

Expand Down

0 comments on commit d27c5e2

Please sign in to comment.