Skip to content

Commit

Permalink
Fix error trying to unpack a model after get_or_created replaced
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyCook committed Dec 11, 2013
1 parent 6559245 commit 753c0a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lettuce/django/steps/models.py
Expand Up @@ -156,7 +156,7 @@ def write_models(model, data, field=None):
"operations") % field)

model_kwargs = {field: hash_[field]}
model_obj, created = model.objects.get(**model_kwargs)
model_obj = model.objects.get(**model_kwargs)

for to_set, val in hash_.items():
setattr(model_obj, to_set, val)
Expand Down

0 comments on commit 753c0a3

Please sign in to comment.