Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dantownsend committed Jul 29, 2024
1 parent f518fc3 commit 22f3254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/piccolo/query_types/objects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,10 @@ It works with ``prefetch`` too:
.. code-block:: python
# If we have an instance:
band = await Band.objects().first()
band = await Band.objects().where(Band.name == "Pythonistas").first()
# Call an API endpoint (e.g. with httpx):
await client.post("/band/", json={"popularity: 5000"})
await client.post(f"/band/{band.id}/", json={"popularity": 5000})
# Make sure the instance was updated:
await band.refresh()
Expand Down

0 comments on commit 22f3254

Please sign in to comment.