Ticket #3996: 3996.diff

File 3996.diff, 472 bytes (added by Ivan Sagalaev <Maniac@…>, 17 years ago)

Patch

  • django/db/models/base.py

     
    8686        return '<%s: %s>' % (self.__class__.__name__, self)
    8787
    8888    def __str__(self):
     89        if hasattr(self, '__unicode__'):
     90            return unicode(self).encode('utf-8')
    8991        return '%s object' % self.__class__.__name__
    9092
    9193    def __eq__(self, other):
Back to Top