Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 88a9078

Browse filesBrowse files
authored
Update intermediate-usage.rst (#871)
* Update intermediate-usage.rst Should be 'user_posts' instead of 'user_friends' * Update intermediate-usage.rst Should be 'user_posts' instead of 'user_friends'
1 parent 9906bd7 commit 88a9078
Copy full SHA for 88a9078

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎docs/intermediate-usage.rst‎

Copy file name to clipboardExpand all lines: docs/intermediate-usage.rst
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ That covers the inputs. We also defined some interesting field types in the
214214
'date_updated': fields.DateTime,
215215
'links': fields.Nested({
216216
'friends': fields.Url('user_friends', absolute=True),
217-
'posts': fields.Url('user_friends', absolute=True),
217+
'posts': fields.Url('user_posts', absolute=True),
218218
}),
219219
}
220220

@@ -241,7 +241,7 @@ way that it would be an acceptable argument to :func:`marshal` by itself.
241241
Finally, we used the :class:`fields.Url` field type. ::
242242

243243
'friends': fields.Url('user_friends', absolute=True),
244-
'posts': fields.Url('user_friends', absolute=True),
244+
'posts': fields.Url('user_posts', absolute=True),
245245

246246
It takes as its first parameter the name of the endpoint associated with the
247247
urls of the objects in the ``links`` sub-object. Passing ``absolute=True``

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.