Source code for superdjango.db.completed.managers
# Imports
from django.db.models import Manager
# Exports
__all__ = (
"CompletedManager",
)
# Managers
[docs]class CompletedManager(Manager):
"""Provide query filtering for completed records.
"""
[docs] def complete(self):
"""Specifically select completed records."""
return super().get_queryset().filter(is_complete=True)
[docs] def incomplete(self):
"""Specifically select incomplete records."""
return super().get_queryset().filter(is_complete=False)