Return anonymous user
leebrooks0 opened this issue · 8 comments
leebrooks0 commented
Is this line correct:
https://github.com/dcramer/mock-django/blob/master/mock_django/http.py#L62
Should it not be if user is None
?
If I don't pass in a user I get None
for request.user
leebrooks0 commented
Another thing, should this line
https://github.com/dcramer/mock-django/blob/master/mock_django/http.py#L63
not read user = self.user
?
leebrooks0 commented
Sorry I see it is not a class, what i meant was that
user = AnonymousUser()
?
frewsxcv commented
Thanks @leebrooks0
leebrooks0 commented
Thanks for the fix, any chance you could push a new version to pypi?
frewsxcv commented
leebrooks0 commented
Thanks