Ticket #3201: django-postgres-introspection.diff

File django-postgres-introspection.diff, 489 bytes (added by j.states@…, 17 years ago)

Patch for this ticket, please review

  • introspection.py

     
    3232    for row in cursor.fetchall():
    3333        try:
    3434            # 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])
    3636        except ValueError:
    3737            continue
    3838    return relations
Back to Top