mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Fixes
This commit is contained in:
		| @@ -91,6 +91,14 @@ class ManufacturerPartFilter(rest_filters.FilterSet): | ||||
|     Custom API filters for the ManufacturerPart list endpoint. | ||||
|     """ | ||||
|  | ||||
|     class Meta: | ||||
|         model = ManufacturerPart | ||||
|         fields = [ | ||||
|             'manufacturer', | ||||
|             'MPN', | ||||
|             'part', | ||||
|         ] | ||||
|  | ||||
|     # Filter by 'active' status of linked part | ||||
|     active = rest_filters.BooleanFilter(field_name='part__active') | ||||
|  | ||||
| @@ -133,12 +141,6 @@ class ManufacturerPartList(generics.ListCreateAPIView): | ||||
|         filters.OrderingFilter, | ||||
|     ] | ||||
|  | ||||
|     filter_fields = [ | ||||
|         'MPN', | ||||
|         'manufacturer', | ||||
|         'part', | ||||
|     ] | ||||
|  | ||||
|     search_fields = [ | ||||
|         'manufacturer__name', | ||||
|         'description', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user