Ticket #3201: django-postgres-introspection.diff
File django-postgres-introspection.diff, 489 bytes (added by , 18 years ago) |
---|
-
introspection.py
32 32 for row in cursor.fetchall(): 33 33 try: 34 34 # row[0] and row[1] are like "{2}", so strip the curly braces. 35 relations[int(row[0][1:-1]) - 1] = (int(row[ 1][1:-1]) - 1, row[2])35 relations[int(row[0][1:-1]) - 1] = (int(row[2][1:-1]) - 1, row[3]) 36 36 except ValueError: 37 37 continue 38 38 return relations