Ticket #7778: fix_delete.diff
File fix_delete.diff, 718 bytes (added by , 16 years ago) |
---|
-
django/db/models/query.py
822 822 update_query = sql.UpdateQuery(cls, connection) 823 823 for field, model in cls._meta.get_fields_with_model(): 824 824 if (field.rel and field.null and field.rel.to in seen_objs and 825 filter(lambda f: f.column == field. column,825 filter(lambda f: f.column == field.rel.get_related_field().name, 826 826 field.rel.to._meta.fields)): 827 827 if model: 828 828 sql.UpdateQuery(model, connection).clear_related(field,