mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 02:41:21 +00:00
Ignore ready warning when calling getModelsWithMixin (#10963)
This commit is contained in:
1 parent
d0c23bd523
commit
7028bb84ff
1 file changed
+2
@@ -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