Skip to content
Browse files

fixed a bug where return values from save_to_storymarket weren't unpa…

…cked

Signed-off-by: Flavio Curella <flavio.curella@gmail.com>
  • Loading branch information...
1 parent b23dde4 commit f744b4e00ddf5956a9f2e5ab75e53425f173ae23 @fcurella committed Jun 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 django_storymarket/utils.py
View
2 django_storymarket/utils.py
@@ -31,7 +31,7 @@ def save_to_storymarket(obj, storymarket_type, data):
for subitem in package_items:
subobj = subitem.pop('object')
subtype = subitem.pop('type').rstrip('s')
- synced = save_to_storymarket(subobj, subtype, subitem)
+ synced, created = save_to_storymarket(subobj, subtype, subitem)
data.setdefault('%s_items' % subtype, []).append(synced.storymarket_id)
# Grab the appropriate manager for the given storymarket type.

0 comments on commit f744b4e

Please sign in to comment.
Something went wrong with that request. Please try again.