Ticket #1459: m2m-fix.diff
File m2m-fix.diff, 644 bytes (added by , 19 years ago) |
---|
-
django/db/models/fields/related.py
221 221 (target_col_name, join_table, source_col_name, 222 222 target_col_name, ",".join(['%s'] * len(new_ids))), 223 223 [source_pk_val] + list(new_ids)) 224 if cursor.rowcount is not None and cursor.rowcount >0:224 if cursor.rowcount is not None and cursor.rowcount != 0: 225 225 existing_ids = set([row[0] for row in cursor.fetchmany(cursor.rowcount)]) 226 226 else: 227 227 existing_ids = set()