From 6b0a25d9e29f116292cea5064a45c4e518ac8542 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 14 Apr 2016 21:55:47 -0400 Subject: [PATCH] Removed unused ForeignObject.attnames/get_defaults(). --- django/db/models/fields/related.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py index 1bd1248c71..b3e3408c18 100644 --- a/django/db/models/fields/related.py +++ b/django/db/models/fields/related.py @@ -696,13 +696,6 @@ class ForeignObject(RelatedField): def get_transform(self, *args, **kwargs): raise NotImplementedError('Relational fields do not support transforms.') - @property - def attnames(self): - return tuple(field.attname for field in self.local_related_fields) - - def get_defaults(self): - return tuple(field.get_default() for field in self.local_related_fields) - def contribute_to_class(self, cls, name, private_only=False, **kwargs): super(ForeignObject, self).contribute_to_class(cls, name, private_only=private_only, **kwargs) setattr(cls, self.name, ForwardManyToOneDescriptor(self))