Commit 6ee36133 by Carlton Gibson

Add missing definite article

parent 71e1a394
...@@ -509,7 +509,7 @@ Model fields which have `editable=False` set, and `AutoField` fields will be set ...@@ -509,7 +509,7 @@ Model fields which have `editable=False` set, and `AutoField` fields will be set
**Note**: There is a special-case where a read-only field is part of a `unique_together` constraint at the model level. Here you **must** specify the field explicitly and provide a valid default value. **Note**: There is a special-case where a read-only field is part of a `unique_together` constraint at the model level. Here you **must** specify the field explicitly and provide a valid default value.
A common example of this is a read-only relation to currently authenticated `User` which is `unique_together` with another identifier. In this case you would declare the user field like so: A common example of this is a read-only relation to the currently authenticated `User` which is `unique_together` with another identifier. In this case you would declare the user field like so:
user = serializers.PrimaryKeyRelatedField(read_only=True, default=serializers.CurrentUserDefault()) user = serializers.PrimaryKeyRelatedField(read_only=True, default=serializers.CurrentUserDefault())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment