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

Fix SafeDeleteQueryset.as_manager to return SafeDeleteManager #228

Merged
merged 1 commit into from Mar 30, 2023

Conversation

gwax
Copy link
Contributor

@gwax gwax commented Mar 22, 2023

Calling the as_manager method on a SafeDeleteQueryset subclass previously created a SafeDelete naive manager. This commit overrides the as_manager method to properly return a SafeDeleteManager object.

@gwax gwax force-pushed the gwax/fix-queryset-as_manager branch from 5a23588 to 3933529 Compare March 22, 2023 22:28
@Gagaro
Copy link
Member

Gagaro commented Mar 27, 2023

Thanks for the PR 👍 .

There is an issue with typing, could you take a look at it?

Calling the as_manager method on a SafeDeleteQueryset subclass previously
created a SafeDelete naive manager. This commit overrides the as_manager
method to properly return a SafeDeleteManager object.
@gwax gwax force-pushed the gwax/fix-queryset-as_manager branch from 3933529 to 07b7304 Compare March 29, 2023 20:53
@gwax
Copy link
Contributor Author

gwax commented Mar 29, 2023

@Gagaro , I believe the typing issue is resolved now

@coveralls
Copy link

coveralls commented Mar 30, 2023

Coverage Status

Coverage: 96.952% (+0.02%) from 96.93% when pulling 07b7304 on gwax:gwax/fix-queryset-as_manager into 179288b on makinacorpus:master.

@Gagaro
Copy link
Member

Gagaro commented Mar 30, 2023

Thanks again for the PR 👍 .

@Gagaro Gagaro merged commit ac2a6a5 into makinacorpus:master Mar 30, 2023
13 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants