Skip to content

ActivityPlugin instance has no attribute activity_cls. Python3 compatibility #226

Open

Description

@yetem

In ActivityPlugin we have after_build_model method, which set activity_cls attribute to some value. If in project, we haven't any model with __versioned__ attribute, method doesn't fired, and activity_cls isn't set. In Python2 it wasn't problem, because reference to attribute which doesn't exist returned None. In Python3, when attribute doesn't set we have AttributeError. So, we need to check, if class has attribute activity_cls in method is_session_modified before we check a condition.

Activity

  1. added a commit that references this issue on Aug 7, 2019
  2. yetem commented on Aug 7, 2019

    @yetem
    ContributorAuthor
  3. added a commit that references this issue on May 10, 2020
  4. added
    pinned
    on Oct 15, 2026
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

    pinned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions