Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Custom view class incorrectly rejects View subclasses #21

@kyleect

Description

@kyleect

It should be view_cls not view_cls.__class__

    if view_cls is not None and not issubclass(view_cls.__class__, View):
        raise ValueError(f"cls must be a subclass of View")

    if view_cls is not None and not issubclass(view_cls.__class__, View):
        raise ValueError(f"cls must be a subclass of View")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions