{"version":"1.0","type":"rich","title":"Gist 8479609","description":"This example shows a Django REST Framework serializer that exposes booking data alongside a dynamic list of salesperson options. The `BookingSerializer` model serializer outputs fields for booking ID, booking number, current salesperson, and a custom `sales_people_options` field. The `UserOptionsField` uses the `field_to_native` method to query all users and return their IDs and usernames, providing a dropdown-style selection list in the API response. It relies on Django’s ORM and the `serializers.ModelSerializer` and `serializers.Field` classes from Django REST Framework.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-8479609?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}