fix some issues with partner name encoding
import copy
from datetime import timedelta
+from django.utils.encoding import smart_text
from taggit.managers import TaggableManager
from taggit.models import TagBase, GenericTaggedItemBase
@@ -467,7 +468,7 @@ class Partner(models.Model):
)
def __str__(self):
- return self.company_name
+ return smart_text(self.company_name)
def clean(self):
if self.agreement_with_terms_of_use and not self.terms_of_use:
