I found the cause of this magic "multiply by 3" but I don't understand
it well enough to offer a solution. In the mysql backend, there is this
clause (lines 69-70 in DatabaseWrapper.cursor):
if self.connection.get_server_info() >= '4.1':
cursor.execute("SET NAMES utf8")
I'm experimenting with 'inspectdb' so I can use Django on an existing
database. I was curious to see what inspectdb would return for the
tutorial tables (Polls, Choices) and was confused by the output:
class PollsChoice(meta.Model):
id = meta.IntegerField()
poll_id = meta.IntegerField()
2 matches
Mail list logo