Return mapping between field names and queries for the given model.
(model_cls: type[AnyModel])
| 518 | |
| 519 | |
| 520 | def named_queries(model_cls: type[AnyModel]) -> dict[str, FieldQueryType]: |
| 521 | """Return mapping between field names and queries for the given model.""" |
| 522 | attr_name = f"{model_cls.__name__.lower()}_queries" |
| 523 | return { |
| 524 | field: query |
| 525 | for plugin in find_plugins() |
| 526 | for field, query in getattr(plugin, attr_name, {}).items() |
| 527 | } |
| 528 | |
| 529 | |
| 530 | def notify_info_yielded( |
nothing calls this directly
no test coverage detected