mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-20 06:57:57 +00:00
Functionality for retrieving test templates associated with a given part
This commit is contained in:
1 parent
7215a563b1
commit
0ec880290b
2 files changed
+17
-2
No files matched your search
@@ -13,7 +13,7 @@ from django.core.exceptions import ValidationError
|
||||
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from part.models import Part
|
||||
from part import models as PartModels
|
||||
|
||||
from django_tex.shortcuts import render_to_pdf
|
||||
from django_weasyprint import WeasyTemplateResponseMixin
|
||||
@@ -186,7 +186,7 @@ class PartFilterMixin(models.Model):
|
||||
|
||||
filters = self.get_part_filters()
|
||||
|
||||
parts = Part.objects.filter(**filters)
|
||||
parts = PartModels.Part.objects.filter(**filters)
|
||||
|
||||
parts = parts.filter(pk=part.pk)
|
||||
|
||||
|
||||
Reference in new issue
Block a user