Ignore ready warning when calling getModelsWithMixin (#10963)

This commit is contained in:
Oliver 2025-12-06 19:48:14 +11:00 committed by GitHub
parent d0c23bd523
commit 7028bb84ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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.