added feature to relocate stocks to a different storage

...had to deal with form prefixes at some places
...storage search does not work as expected yet :(
This commit is contained in:
2025-01-27 22:55:05 +01:00
parent 3ec11cf092
commit aefcc472ea
6 changed files with 47 additions and 7 deletions

View File

@@ -80,7 +80,7 @@ class StorageSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = parts_models.Storage
fields = ['url', 'id', 'name', 'verbose_name', 'parent_storage', 'responsible', 'template', 'full_path']
fields = ['url', 'id', 'name', 'verbose_name', 'parent_storage', 'responsible', 'template', 'full_path', 'full_path_verbose']
class StorageSerializerStocksExpanded(StorageSerializer):
ro_stocks = StockSerializerExpandComponent(many=True, read_only=True, source='stock_set')