manosim / manosim/django-rest-framework-docs

"Read only field" displayed in the post request

Open
#84 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug live-api
Dominant language
Python
Stars
641
Forks
178
PR merge metrics
No merged PRs in 30d

Description

![1](https://cloud.githubusercontent.com/assets/16425208/14583433/68bf9356-042a-11e6-9550-e90e4c240fc9.png)

```
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.