Ticket #13987: 13987_primary_key_fix_1.diff
File 13987_primary_key_fix_1.diff, 647 bytes (added by , 14 years ago) |
---|
-
django/db/models/base.py
151 151 elif not is_proxy: 152 152 attr_name = '%s_ptr' % base._meta.module_name 153 153 field = OneToOneField(base, name=attr_name, 154 auto_created=True, parent_link=True )154 auto_created=True, parent_link=True, primary_key=True) 155 155 new_class.add_to_class(attr_name, field) 156 156 else: 157 157 field = None