X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/8c29337f201187a1d8aa0110c9faf36b5d4f9219..2444d6ffd7995be782615589fb1d5aef2c8277ce:/forum/models/user.py diff --git a/forum/models/user.py b/forum/models/user.py index 8ef201d..9d63248 100644 --- a/forum/models/user.py +++ b/forum/models/user.py @@ -22,6 +22,8 @@ QUESTIONS_PER_PAGE_CHOICES = ( ) class AnonymousUser(DjangoAnonymousUser): + reputation = 0 + def get_visible_answers(self, question): return question.answers.filter_state(deleted=False)