Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed django.db.models.options.Options.one_to_one_field.

The last use of it was removed in r9641 (it's internal API) and it's been
broken since r7477, as there's no longer a maximum of one OneToOneField per
model, so anything relying on it contained subtle bugs.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9643 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f1f1d366c8378b5f919ee591e733dbcabea359ba 1 parent bb6d5dc
Malcolm Tredinnick authored December 11, 2008
2  django/db/models/fields/related.py
@@ -728,8 +728,6 @@ def __init__(self, to, to_field=None, **kwargs):
1  django/db/models/options.py
@@ -41,7 +41,6 @@ def __init__(self, meta, app_label=None):
41 41
         self.meta = meta
42 42
         self.pk = None
43 43
         self.has_auto_field, self.auto_field = False, None
44  
-        self.one_to_one_field = None
45 44
         self.abstract = False
46 45
         self.parents = SortedDict()
47 46
         self.duplicate_targets = {}

0 notes on commit f1f1d36

Please sign in to comment.
Something went wrong with that request. Please try again.