mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-13 08:21:26 +00:00
Custom list serializer for 'location_detail'
This commit is contained in:
@ -17,15 +17,12 @@ class LocationBriefSerializer(InvenTreeModelSerializer):
|
||||
Provides a brief serializer for a StockLocation object
|
||||
"""
|
||||
|
||||
url = serializers.CharField(source='get_absolute_url', read_only=True)
|
||||
|
||||
class Meta:
|
||||
model = StockLocation
|
||||
fields = [
|
||||
'pk',
|
||||
'name',
|
||||
'pathstring',
|
||||
'url',
|
||||
]
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user