Ticket #6755: nfa_modelinheritance.1.diff
File nfa_modelinheritance.1.diff, 546 bytes (added by , 16 years ago) |
---|
-
django/db/models/fields/related.py
diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py index c825740..26ecb16 100644
a b class OneToOneField(ForeignKey): 695 695 """ 696 696 def __init__(self, to, to_field=None, **kwargs): 697 697 kwargs['unique'] = True 698 kwargs['editable'] = False 698 699 if 'num_in_admin' not in kwargs: 699 700 kwargs['num_in_admin'] = 0 700 701 super(OneToOneField, self).__init__(to, to_field, OneToOneRel, **kwargs)