def get_comments(self):
        if not hasattr(self, '_comments'):
            self._comments = list(self.comments.all())

        return self._comments
Accessing the view with anonymous user should redirect to the login
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/attachments/models.py/FileAttachment.get_comments--crossover with--dataset/ETHPy150Open ExCiteS/geokey/geokey/users/tests/test_views.py/UserProfileTest.test_get_with_anonymous_user