We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b0e731 commit 41a4b8cCopy full SHA for 41a4b8c
oscar/apps/offer/models.py
@@ -762,15 +762,11 @@ def __unicode__(self):
762
763
def save(self, *args, **kwargs):
764
if not self.slug:
765
- self.slug = slugify(self.get_name())
+ self.slug = slugify(self.name)
766
767
# Save product
768
super(Range, self).save(*args, **kwargs)
769
770
- def get_name(self):
771
- name = self.name
772
- return name
773
-
774
def contains_product(self, product):
775
"""
776
Check whether the passed product is part of this range
0 commit comments