1👍
✅
If you use ModelSerializer
and ModelViewSet
, you can get the description of the serializer schema sending an OPTIONS
request to the endpoint and use it in the front end for building your form based on that information. You even get the choices when the field of the model has them set.
Source:stackexchange.com