mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-15 22:51:01 +00:00
"URL" is renamed to "link" in the URL
This commit is contained in:
1 parent
511cdef323
commit
d739c2dea8
2 files changed
+8
-1
No files matched your search
@@ -243,6 +243,12 @@ class PartList(generics.ListCreateAPIView):
|
||||
else:
|
||||
item['category__name'] = None
|
||||
|
||||
# Rename "URL" to "link" to distinguish from lower-case "url",
|
||||
# which is the web address of the item itself
|
||||
if 'URL' in item.keys():
|
||||
item['link'] = item['URL']
|
||||
del item['URL']
|
||||
|
||||
return Response(data)
|
||||
|
||||
def get_queryset(self):
|
||||
|
||||
Reference in new issue
Block a user