Guide99.8K views3,383 votes0 replies3,642 following
Control API Field Visibility in Django REST Framework with read_only_fields and write_only_fields
Use read_only_fields and write_only_fields in a DRF ModelSerializer Meta class to block client input on IDs and timestamps and keep passwords out of responses.