2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 10:35:40 +00:00

Add custom "list" function back in

- Actually does make a significant difference to query speed
This commit is contained in:
Oliver
2021-07-20 22:12:01 +10:00
parent 4199e7567f
commit cb0b7209ec
2 changed files with 69 additions and 8 deletions

View File

@ -296,8 +296,9 @@ class PartManager(models.Manager):
return super().get_queryset().prefetch_related(
'category',
'category__parent',
'stock_items',
'builds',
'builds',
)