Initial commit from ZIP

This commit is contained in:
kusz committed 2024-11-27 13:18:16 +01:00
commit 378d4692a9
454 files changed
+40367

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
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)