Bruno,
Great point. I've simplified my old code quite a bit with this
suggestion.
After creating a dictionary with 12 items in it, I use it for the
default in get_or_create, then:
[setattr(product, field, value) for field, value in
new_values.items()]
product.save()
Thanks,
Shawn
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.