2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-13 08:21:26 +00:00

Rename "URL" to "link" for StockItem and StockItemTracking models

This commit is contained in:
Oliver Walters
2020-04-06 10:43:06 +10:00
parent 2530313e68
commit bd407cd226
8 changed files with 80 additions and 21 deletions

View File

@ -80,22 +80,23 @@ class StockItemSerializer(InvenTreeModelSerializer):
class Meta:
model = StockItem
fields = [
'pk',
'url',
'batch',
'in_stock',
'link',
'location',
'location_detail',
'notes',
'part',
'part_detail',
'part_name',
'part_image',
'supplier_part',
'location',
'location_detail',
'in_stock',
'pk',
'quantity',
'serial',
'batch',
'supplier_part',
'status',
'status_text',
'notes',
'url',
]
""" These fields are read-only in this context.
@ -155,7 +156,7 @@ class StockTrackingSerializer(InvenTreeModelSerializer):
'date',
'title',
'notes',
'URL',
'link',
'quantity',
'user',
'system',