Ticket #3370: mysql-utf8-complete.patch
File mysql-utf8-complete.patch, 1.1 KB (added by , 18 years ago) |
---|
-
django/db/models/base.py
77 77 return getattr(self, self._meta.pk.attname) 78 78 79 79 def __repr__(self): 80 return '<%s: %s>' % (self.__class__.__name__, self )80 return '<%s: %s>' % (self.__class__.__name__, self.__str__().encode(settings.DEFAULT_CHARSET)) 81 81 82 82 def __str__(self): 83 83 return '%s object' % self.__class__.__name__ -
django/db/backends/mysql/base.py
89 89 'db': settings.DATABASE_NAME, 90 90 'passwd': settings.DATABASE_PASSWORD, 91 91 'conv': django_conversions, 92 'charset': 'utf8', 92 93 } 93 94 if settings.DATABASE_HOST.startswith('/'): 94 95 kwargs['unix_socket'] = settings.DATABASE_HOST