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: please use ModelBase.available_objects to continue excluding soft-deleted objects. #1927

Open
2 tasks
Tracked by #32888
DanielVZ96 opened this issue Oct 26, 2023 · 0 comments
Open
2 tasks
Tracked by #32888

Comments

@DanielVZ96
Copy link

This warning is appearing 24 times during provisioning edx-platform. It clutters logs and hinders dev experience (openedx/edx-platform#32888).

ModelBase.objects model manager will include soft-deleted objects in an upcoming release; please use ModelBase.available_objects to continue excluding soft-deleted objects.

It seems like it comes from using SoftDeletableModel:

from model_utils.models import SoftDeletableModel, TimeStampedModel

AC:

  • The warnings stop cluttering logs
  • Any usage of a model inheriting from SoftDeletableModel will continue having the same behavior
@DanielVZ96 DanielVZ96 changed the title Fix: please use ModelBase.available_objects to continue excluding soft-deleted objects. fix: please use ModelBase.available_objects to continue excluding soft-deleted objects. Oct 26, 2023
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