You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to define a field on a Django model like result_type = 'staff', expose it in a DRF serializer by including it in fields = (..., 'result_type'), and have the static value 'staff' exposed in the schema.
I want this because we use the schema to generate flowtypes for our project, and we sometimes need to do type refinements between models, and a static value would help tremendously here.
The text was updated successfully, but these errors were encountered:
Here's my use case:
I'd like to define a field on a Django model like
result_type = 'staff'
, expose it in a DRF serializer by including it infields = (..., 'result_type')
, and have the static value 'staff' exposed in the schema.I want this because we use the schema to generate flowtypes for our project, and we sometimes need to do type refinements between models, and a static value would help tremendously here.
The text was updated successfully, but these errors were encountered: