We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2351e17 commit 816aec0Copy full SHA for 816aec0
section6/resources/item.py
@@ -29,7 +29,7 @@ def post(self, name):
29
30
data = Item.parser.parse_args()
31
32
- item = ItemModel(name, data['price'], data['store_id'])
+ item = ItemModel(name, **data)
33
34
try:
35
item.save_to_db()
0 commit comments