mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Data output table (#9984)
* Allow DataOutput to be deleted individually via API * Add row actoins for data-export table * Filter table by user * Bump API version
This commit is contained in:
		| @@ -1,12 +1,16 @@ | ||||
| """InvenTree API version information.""" | ||||
|  | ||||
| # InvenTree API version | ||||
| INVENTREE_API_VERSION = 364 | ||||
| INVENTREE_API_VERSION = 365 | ||||
|  | ||||
| """Increment this API version number whenever there is a significant change to the API that any clients need to know about.""" | ||||
|  | ||||
| INVENTREE_API_TEXT = """ | ||||
|  | ||||
| v365 -> 2025-07-09 : https://github.com/inventree/InvenTree/pull/9984 | ||||
|     - Allow filtering of DataOutput API by "user" field | ||||
|     - Allow individual deletion of DataOutput objects via the API | ||||
|  | ||||
| v364 -> 2025-07-06 : https://github.com/inventree/InvenTree/pull/9962 | ||||
|     - Fix permissions for the DataImportSession API endpoints | ||||
|  | ||||
|   | ||||
| @@ -20,7 +20,7 @@ from djmoney.contrib.exchange.models import ExchangeBackend, Rate | ||||
| from drf_spectacular.utils import OpenApiResponse, extend_schema | ||||
| from error_report.models import Error | ||||
| from pint._typing import UnitLike | ||||
| from rest_framework import serializers | ||||
| from rest_framework import generics, serializers | ||||
| from rest_framework.exceptions import NotAcceptable, NotFound, PermissionDenied | ||||
| from rest_framework.permissions import IsAdminUser, IsAuthenticated | ||||
| from rest_framework.response import Response | ||||
| @@ -852,9 +852,10 @@ class DataOutputList(DataOutputEndpointMixin, BulkDeleteMixin, ListAPI): | ||||
|  | ||||
|     filter_backends = SEARCH_ORDER_FILTER | ||||
|     ordering_fields = ['pk', 'user', 'plugin', 'output_type', 'created'] | ||||
|     filterset_fields = ['user'] | ||||
|  | ||||
|  | ||||
| class DataOutputDetail(DataOutputEndpointMixin, RetrieveAPI): | ||||
| class DataOutputDetail(DataOutputEndpointMixin, generics.DestroyAPIView, RetrieveAPI): | ||||
|     """Detail view for a DataOutput object.""" | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user