Skip to content

Bug: read_frame does not work if at least one manager is not named "objects" #130

@EmperorArthur

Description

@EmperorArthur

This means if a custom manager is used, without using the extremely generic "objects" the whole thing does not work.

Suggested Fix

The real problem is in utils.replace_pk.

The fix is to replace model.objects with model._meta.default_manager. This is how I believe Django does things internally when a manager is not specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions