<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_immediate_parents(self):
 """ Return all direct parents of this company. Excludes parents of parents """

        ownership = Ownership.objects.filter(child=self)
        parents = Company.objects.filter(parent__in=ownership).distinct()
        return parents