diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py index 146a1ae457..01f53aa140 100644 --- a/django/db/models/fields/related.py +++ b/django/db/models/fields/related.py @@ -728,8 +728,6 @@ class OneToOneField(ForeignKey): def contribute_to_related_class(self, cls, related): setattr(cls, related.get_accessor_name(), SingleRelatedObjectDescriptor(related)) - if not cls._meta.one_to_one_field: - cls._meta.one_to_one_field = self def formfield(self, **kwargs): if self.rel.parent_link: diff --git a/django/db/models/options.py b/django/db/models/options.py index 5d8a7b7104..9e1bfb4ce1 100644 --- a/django/db/models/options.py +++ b/django/db/models/options.py @@ -41,7 +41,6 @@ class Options(object): self.meta = meta self.pk = None self.has_auto_field, self.auto_field = False, None - self.one_to_one_field = None self.abstract = False self.parents = SortedDict() self.duplicate_targets = {}