Skip to content

fix: please use ModelBase.available_objects to continue excluding soft-deleted objects. #1927

@DanielVZ96

Description

@DanielVZ96

This warning is appearing 24 times during provisioning edx-platform. It clutters logs and hinders dev experience (openedx/openedx-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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions