mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-14 08:19:54 +00:00
Ignore ready warning when calling getModelsWithMixin (#10963)
This commit is contained in:
@@ -25,6 +25,7 @@ from common.notifications import (
|
|||||||
)
|
)
|
||||||
from common.settings import get_global_setting
|
from common.settings import get_global_setting
|
||||||
from InvenTree.format import format_money
|
from InvenTree.format import format_money
|
||||||
|
from InvenTree.ready import ignore_ready_warning
|
||||||
|
|
||||||
logger = structlog.get_logger('inventree')
|
logger = structlog.get_logger('inventree')
|
||||||
|
|
||||||
@@ -260,6 +261,7 @@ def render_currency(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ignore_ready_warning
|
||||||
def getModelsWithMixin(mixin_class) -> list:
|
def getModelsWithMixin(mixin_class) -> list:
|
||||||
"""Return a list of database models that inherit from the given mixin class.
|
"""Return a list of database models that inherit from the given mixin class.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user