Permalink
Browse files

Merge pull request #2 from fcurella/master

fixed a bug where return values from save_to_storymarket weren't unpacked
  • Loading branch information...
2 parents b23dde4 + f744b4e commit ec43318ddb9964e67220f6fa9675389b637422ce @jacobian jacobian committed Jun 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 ec43318

Please sign in to comment.