Skip to content
This repository was archived by the owner on Jun 11, 2018. It is now read-only.
This repository was archived by the owner on Jun 11, 2018. It is now read-only.

request.user.is_authenticated is not callable in Django 2.0 #190

Description

@coagulant

See: MyBook#1

Sorry, don't have to to do a proper pull-request, because my fix would break exiting Django < 1.10 support or would require to vendor compatibility shims. Which is cumbersome given there is no Django tox matrix to test against.

TypeError: 'bool' object is not callable
  File "opbeat/handlers/logging.py", line 56, in emit
    return self._emit(record)
  File "opbeat/contrib/django/handlers.py", line 37, in _emit
    return super(OpbeatHandler, self)._emit(record, request=request)
  File "opbeat/handlers/logging.py", line 135, in _emit
    date=date, **kwargs)
  File "opbeat/contrib/django/client.py", line 165, in capture
    data.update(self.get_data_from_request(request))
  File "opbeat/contrib/django/client.py", line 153, in get_data_from_request
    result['user'] = self.get_user_info(request)
  File "opbeat/contrib/django/client.py", line 68, in get_user_info
    if request.user.is_authenticated():

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions