I'm trying to expand location but it seems that it doesn't work it just adding the location_id in fields but when I add ?expand=location in the url nothing happens
Code :
class VehicleSerializer(SerializerExtensionsMixin,serializers.ModelSerializer):
class Meta:
model = Vehicle
exclude = ('location',)
expandable_fields = dict(
location = LocationSerializer
)
I'm trying to expand location but it seems that it doesn't work it just adding the location_id in fields but when I add ?expand=location in the url nothing happens
Code :