Removed unused ForeignObject.attnames/get_defaults().

This commit is contained in:
Tim Graham 2016-04-14 21:55:47 -04:00
parent 2da7f5afcf
commit 6b0a25d9e2
1 changed files with 0 additions and 7 deletions

View File

@ -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))