Skip to content

Commit c9a9261

Browse files
committed
Finish 0.3.2
2 parents eda0385 + b016113 commit c9a9261

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

business_logic/models/reference.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from django.contrib.contenttypes.models import ContentType
66
from django.db import models
7-
from django.utils.encoding import python_2_unicode_compatible
7+
from django.utils.encoding import python_2_unicode_compatible, force_text
88
from django.utils.translation import ugettext_lazy as _
99

1010
from .node import NodeAccessor
@@ -21,7 +21,7 @@ class Meta:
2121
verbose_name_plural = _('Reference descriptors')
2222

2323
def __str__(self):
24-
return str(self.content_type)
24+
return force_text(self.content_type)
2525

2626
def get_search_fields(self):
2727
if not self.search_fields:

business_logic/models/variable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
from django.db import models
4-
from django.utils.encoding import python_2_unicode_compatible, smart_text
4+
from django.utils.encoding import python_2_unicode_compatible, force_text
55
from django.utils.translation import ugettext_lazy as _
66

77

@@ -37,7 +37,7 @@ def __bool__(self):
3737
return False
3838

3939
def __str__(self):
40-
return str(_('Undefined'))
40+
return force_text(_('Undefined'))
4141

4242
def __str__(self):
4343
return self.definition.name

0 commit comments

Comments
 (0)