Skip to content

Commit

Permalink
[FEAT] Update product_class str method (#4248)
Browse files Browse the repository at this point in the history
* feat ⭐ update product_class str method

* fix 🔧 update github actions

* Revert "fix 🔧 update github actions"

This reverts commit 604a0ce.
  • Loading branch information
samar-hassan committed Feb 19, 2024
1 parent fddb6a3 commit fee973c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oscar/apps/catalogue/abstract_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Meta:
verbose_name_plural = _("Product classes")

def __str__(self):
return self.name
return self.name or self.slug

@property
def has_attributes(self):
Expand Down

0 comments on commit fee973c

Please sign in to comment.