Managers#

class abstract.managers.BaseManager(*args, **kwargs)[source]#

A custom manager class for models with a ‘status’ field, providing methods for querying and filtering objects based on their status.

Methods:

get_queryset(): Returns the base queryset. all(): Returns all objects excluding those with status=False. filter(*args, **kwargs): Filters objects based on given conditions, excluding those with status=False. count(): Returns the count of objects excluding those with status=False.

all()[source]#

Returns all objects excluding those with status=False.

count()[source]#

Returns the count of objects excluding those with status=False.

filter(*args, **kwargs)[source]#

Filters objects based on given conditions, excluding those with status=False.

Args:

*args: Positional arguments. **kwargs: Keyword arguments.

Returns:

QuerySet: A filtered queryset.

get_queryset()[source]#

Returns the base queryset.