Skip to content

Commit

Permalink
Update the docs to reflect get_item instead of items
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Showalter committed Sep 6, 2010
1 parent 12aba73 commit f1110de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.markdown
Expand Up @@ -127,7 +127,7 @@ View the items included in a plan...

Set an item's quantity (if the item is attached to a customer):

>>> item = customer.items[0]
>>> item = customer.get_item("The Item's Code")
>>> item.quantity = 5
>>> item.save()
>>>
Expand All @@ -137,4 +137,4 @@ Set an item's quantity (if the item is attached to a customer):
>>> item.quantity = 5
>>> item.save()
pycheddar.exceptions.ValidationError: Items may only have their quantity altered if they are directly attached to a customer.


0 comments on commit f1110de

Please sign in to comment.