Skip to content

Commit

Permalink
Merge branch 'fix-102-no-re-set-product-name' of https://github.com/b…
Browse files Browse the repository at this point in the history
…mihelac/django-shop into bmihelac-fix-102-no-re-set-product-name
  • Loading branch information
chrisglass committed Oct 24, 2011
2 parents 1aa96f0 + f1d328b commit 6c69b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shop/models/defaults/bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,6 @@ class Meta(object):
verbose_name_plural = _('Order items')

def save(self, *args, **kwargs):
if self.product:
if not self.product_name and self.product:
self.product_name = self.product.get_name()
super(BaseOrderItem, self).save(*args, **kwargs)

0 comments on commit 6c69b98

Please sign in to comment.