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,13 @@
|
||||
from modeltranslation.translator import TranslationOptions, register
|
||||
|
||||
from core.apps.evaluation.models import ValuationDocumentModel
|
||||
from core.apps.evaluation.models import DocumentModel, ValuationDocumentModel
|
||||
|
||||
|
||||
@register(ValuationDocumentModel)
|
||||
class ValuationdocumentTranslation(TranslationOptions):
|
||||
fields = []
|
||||
|
||||
|
||||
@register(DocumentModel)
|
||||
class DocumentTranslation(TranslationOptions):
|
||||
fields = []
|
||||
|
||||
8
core/apps/evaluation/translation/documentcategory.py
Normal file
8
core/apps/evaluation/translation/documentcategory.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from modeltranslation.translator import TranslationOptions, register
|
||||
|
||||
from core.apps.evaluation.models import DocumentcategoryModel
|
||||
|
||||
|
||||
@register(DocumentcategoryModel)
|
||||
class DocumentcategoryTranslation(TranslationOptions):
|
||||
fields = ["label", "value"]
|
||||
Reference in New Issue
Block a user