查看产品详情bug
This commit is contained in:
parent
9b198bce6c
commit
38e7cf2ee2
|
@ -17,7 +17,7 @@ class MaterialDetailSerializer(serializers.ModelSerializer):
|
|||
fields = '__all__'
|
||||
|
||||
def get_processes_(self, obj):
|
||||
steps = UsedStep.objects.filter(subproducation__product=obj)
|
||||
steps = UsedStep.objects.filter(subproduction__product=obj)
|
||||
objs = Process.objects.filter(step_process__in=steps).order_by('number')
|
||||
return ProcessSimpleSerializer(instance=objs, many=True).data
|
||||
|
||||
|
|
Loading…
Reference in New Issue