Re: Question about inspectdb output

2006-03-01 Thread DavidA
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")

Question about inspectdb output

2006-02-26 Thread DavidA
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()