Commit 6b0a25d9 authored by Tim Graham's avatar Tim Graham
Browse files

Removed unused ForeignObject.attnames/get_defaults().

parent 2da7f5af
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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))