manosim / manosim/django-rest-framework-docs
"Read only field" displayed in the post request
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 641
- Forks
- 178
- PR merge metrics
- No merged PRs in 30d
Description

```
class MessagesSerializers(serializers.ModelSerializer):
message = serializers.CharField(min_length=1)
class Meta:
model = ChatMessages
fields = ('message','chat','user','date')
read_only_fields = ('chat','user')
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the documentation entry for ModelSerializer fields and the read_only_fields option, using the supplied MessagesSerializers example as the reproduction case. Determine whether the displayed read-only fields reflect missing or unclear documentation, then update the relevant guidance so the expected POST behavior is explicit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100