mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Import fix 2 (#9992)
* Fix return types * Add getStatusCodeLabel func * Fix logic for import session drawer - Properly re-fetch session data - Rendering improvements * Fix icon * API permission fixes * Enhanced playwright testing * Fix playwright tests * Tweak playwright tests * Remove unused var * Tweak playwright tests
This commit is contained in:
		| @@ -135,7 +135,7 @@ class DataImportSessionAcceptFields(APIView): | ||||
|         return Response(importer.serializers.DataImportSessionSerializer(session).data) | ||||
|  | ||||
|  | ||||
| class DataImportSessionAcceptRows(DataImporterPermission, CreateAPI): | ||||
| class DataImportSessionAcceptRows(DataImporterPermissionMixin, CreateAPI): | ||||
|     """API endpoint to accept the rows for a DataImportSession.""" | ||||
|  | ||||
|     queryset = importer.models.DataImportSession.objects.all() | ||||
| @@ -174,7 +174,7 @@ class DataImportColumnMappingDetail(DataImporterPermissionMixin, RetrieveUpdateA | ||||
|     serializer_class = importer.serializers.DataImportColumnMapSerializer | ||||
|  | ||||
|  | ||||
| class DataImportRowList(DataImporterPermission, BulkDeleteMixin, ListAPI): | ||||
| class DataImportRowList(DataImporterPermissionMixin, BulkDeleteMixin, ListAPI): | ||||
|     """API endpoint for accessing a list of DataImportRow objects.""" | ||||
|  | ||||
|     queryset = importer.models.DataImportRow.objects.all() | ||||
| @@ -189,7 +189,7 @@ class DataImportRowList(DataImporterPermission, BulkDeleteMixin, ListAPI): | ||||
|     ordering = 'row_index' | ||||
|  | ||||
|  | ||||
| class DataImportRowDetail(DataImporterPermission, RetrieveUpdateDestroyAPI): | ||||
| class DataImportRowDetail(DataImporterPermissionMixin, RetrieveUpdateDestroyAPI): | ||||
|     """Detail endpoint for a single DataImportRow object.""" | ||||
|  | ||||
|     queryset = importer.models.DataImportRow.objects.all() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user