(self)
return self._queryset_class(**kwargs).filter(is_removed=False)
Return queryset limited to not removed entries.
Return queryset limited to not removed entries.
Return queryset limited to not removed entries .
def get_queryset(self):
        """
        Return queryset limited to not removed entries.
        """

        if self.emit_deprecation_warnings:
            warning_message = (
                "{0}.objects model manager will include soft-deleted objects in an "
                "upcoming release; please use {0}.available_objects to continue "
                "excluding soft-deleted objects. See "
                "https://django-model-utils.readthedocs.io/en/stable/models.html"
                "#softdeletablemodel for more information."
            ).format(self.model.__class__.__name__)
            warnings.warn(warning_message, DeprecationWarning)

        kwargs = {'model': self.model, 'using': self._db}
        if hasattr(self, '_hints'):
            kwargs['hints'] = self._hints

        return self._queryset_class(**kwargs).filter(is_removed=False)
def get_queryset ( self ) : if self . emit_deprecation_warnings : warning_message = ( "{0}.objects model manager will include soft-deleted objects in an " "upcoming release; please use {0}.available_objects to continue " "excluding soft-deleted objects. See " "https://django-model-utils.readthedocs.io/en/stable/models.html" "#softdeletablemodel for more information." ) . format ( self . model . __class__ . __name__ ) warnings . warn ( warning_message , DeprecationWarning ) kwargs = { 'model' : self . model , 'using' : self . _db } if hasattr ( self , '_hints' ) : kwargs [ 'hints' ] = self . _hints return self . _queryset_class ( * * kwargs ) . filter ( is_removed = False )