feat: add new document and documentcategory model for auto evaluation detail
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from .auto import * # noqa
|
||||
from .customer import * # noqa
|
||||
from .document import * # noqa
|
||||
from .documentcategory import * # noqa
|
||||
from .history import * # noqa
|
||||
from .movable import * # noqa
|
||||
from .quick import * # noqa
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
from django.db.models.signals import post_save
|
||||
from django.dispatch import receiver
|
||||
|
||||
from core.apps.evaluation.models import ValuationDocumentModel
|
||||
from core.apps.evaluation.models import DocumentModel, ValuationDocumentModel
|
||||
|
||||
|
||||
@receiver(post_save, sender=ValuationDocumentModel)
|
||||
def ValuationdocumentSignal(sender, instance, created, **kwargs): ...
|
||||
|
||||
|
||||
@receiver(post_save, sender=DocumentModel)
|
||||
def DocumentSignal(sender, instance, created, **kwargs): ...
|
||||
|
||||
8
core/apps/evaluation/signals/documentcategory.py
Normal file
8
core/apps/evaluation/signals/documentcategory.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from django.db.models.signals import post_save
|
||||
from django.dispatch import receiver
|
||||
|
||||
from core.apps.evaluation.models import DocumentcategoryModel
|
||||
|
||||
|
||||
@receiver(post_save, sender=DocumentcategoryModel)
|
||||
def DocumentcategorySignal(sender, instance, created, **kwargs): ...
|
||||
Reference in New Issue
Block a user