Changes between Initial Version and Version 1 of Ticket #25730
- Timestamp:
- Nov 10, 2015, 9:00:51 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25730 – Description
initial v1 1 1 base.py contains `from __future__ import unicode_literals` 2 2 3 so the thingthat `Model.__str__` returns is a unicode object in the case where `hasattr(self, '__unicode__')` is False.3 so the "" that `Model.__str__` returns is a unicode object in the case where `hasattr(self, '__unicode__')` is False. 4 4 5 5 There's a `force_text().encode()` on the other case; probably both cases should use `smart_str`.