Initial commit from ZIP
This commit is contained in:
commit
378d4692a9
454 files changed
+40367
No files matched your search
+17
@@ -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)
|
||||
Reference in new issue
Block a user