Changeset 7c91535 in rattail
- Timestamp:
- 07/18/2022 12:21:56 PM (7 months ago)
- Branches:
- master
- Children:
- 331a31b
- Parents:
- b5688a0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rattail/db/model/products.py
rb5688a0 r7c91535 85 85 86 86 87 @six.python_2_unicode_compatible88 87 class Brand(Base): 89 88 """ … … 110 109 111 110 def __str__(self): 112 return self.name or '' 111 text = self.name or '' 112 if six.PY2: 113 return text.encode('utf8') 114 return text 115 116 if six.PY2: 117 def __unicode__(self): 118 return self.name or '' 113 119 114 120
Note: See TracChangeset
for help on using the changeset viewer.