Files
2024-11-27 13:18:16 +01:00

18 lines
566 B
Python
Executable File

from outbo.apps.core.models import SoftDeletableManager
from outbo.apps.products.enums import FileType
class DraftFileManager(SoftDeletableManager):
def get_queryset(self):
return super().get_queryset().filter(file_type=FileType.DRAFT)
class FirstFinalFileManager(SoftDeletableManager):
def get_queryset(self):
return super().get_queryset().filter(file_type=FileType.FIRST_FINAL)
class PrintingFileManager(SoftDeletableManager):
def get_queryset(self):
return super().get_queryset().filter(file_type=FileType.PRINTING_FILE)