Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
EmperorArthur opened this issue Feb 5, 2021 · 0 comments

Comments

@EmperorArthur
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant