mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Extend API for labels and reports to allow creating new items (#5982)
* Extend API for labels and reports to allow creating new items * Increment API_VERSION * Missed something..
This commit is contained in:
		| @@ -18,7 +18,8 @@ import label.models | ||||
| import label.serializers | ||||
| from InvenTree.api import MetadataView | ||||
| from InvenTree.filters import InvenTreeSearchFilter | ||||
| from InvenTree.mixins import ListAPI, RetrieveAPI, RetrieveUpdateDestroyAPI | ||||
| from InvenTree.mixins import (ListCreateAPI, RetrieveAPI, | ||||
|                               RetrieveUpdateDestroyAPI) | ||||
| from part.models import Part | ||||
| from plugin.builtin.labels.inventree_label import InvenTreeLabelPlugin | ||||
| from plugin.registry import registry | ||||
| @@ -65,7 +66,7 @@ class LabelFilterMixin: | ||||
|         return self.ITEM_MODEL.objects.filter(pk__in=valid_ids) | ||||
|  | ||||
|  | ||||
| class LabelListView(LabelFilterMixin, ListAPI): | ||||
| class LabelListView(LabelFilterMixin, ListCreateAPI): | ||||
|     """Generic API class for label templates.""" | ||||
|  | ||||
|     def filter_queryset(self, queryset): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user