willbeaufoy

Results 5 issues of willbeaufoy

## Description See the issue: #8211 for why this is needed. Previously `force_authenticate()` called `logout()` if no user is provided. However as described in the issue, there is a case...

### Discussed in https://github.com/encode/django-rest-framework/discussions/8184 Originally posted by **willbeaufoy** September 24, 2021 If you call [`APIClient.force_authenticate()`](https://github.com/encode/django-rest-framework/blob/master/rest_framework/test.py#L273) with a `token` param but without a `user` param, `self.handler._force_token` is set to the provided...

This would be more of an extra feature, I was wondering whether it would be possible. Would be up for having a look myself if no one's tried it already....

# Bug report ## What's wrong If I use `request.user.groups.all()` in a view (request being an instance of `django.http.HttpRequest`), this runs fine but mypy complains with `error: Item "ManyToManyField[Sequence[Group], RelatedManager[Group]]"...

bug

Only a single line has been written to the log: [05/13/2014 10:09:45AM] INFO - ==== Loading 'Xdebug Client.sublime-package' package ==== Nothing since then despite lots of use. ST3 Ubuntu 14.04...