`request.user = AnonymousUser()`

(must be imported from django.contrib.auth.models)