getsentry/raven-python — pull request #384 by gthb (2013-11-25 16:35:31+00:00)
Title: Capture request.user even if not Django user model

Support authentication setups where the user model does not derive from
Django's AbstractBaseUser or User. Instead accept duck typing and just
abort capturing the user if any of the required attributes are missing.