class A(models.Model):

    def get_foreign_fields(self):
        return [getattr(self, f.name) for f in self._meta.fields if type(f) ==
            models.fields.related.ForeignKey]
Get all related Django model objects