mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-14 00:09:56 +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 InvenTree.format import format_money
|
||||
from InvenTree.ready import ignore_ready_warning
|
||||
|
||||
logger = structlog.get_logger('inventree')
|
||||
|
||||
@@ -260,6 +261,7 @@ def render_currency(
|
||||
)
|
||||
|
||||
|
||||
@ignore_ready_warning
|
||||
def getModelsWithMixin(mixin_class) -> list:
|
||||
"""Return a list of database models that inherit from the given mixin class.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user