mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
Add missing and
This commit is contained in:
parent
397a89c060
commit
b06c8f29e3
|
@ -690,7 +690,7 @@ real project, the coordinate nesting might be better handled with a nested seria
|
||||||
|
|
||||||
The key points from the example, though, are:
|
The key points from the example, though, are:
|
||||||
|
|
||||||
* `to_representation` is passed the entire `DataPoint` object must map from that
|
* `to_representation` is passed the entire `DataPoint` object and must map from that
|
||||||
to the desired output.
|
to the desired output.
|
||||||
|
|
||||||
>>> instance = DataPoint(label='Example', x_coordinate=1, y_coordinate=2)
|
>>> instance = DataPoint(label='Example', x_coordinate=1, y_coordinate=2)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user