<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_calendars_for_object(self, obj, distinction=''):
 """ This function allows you to get calendars for a specific object If distinction is set it will filter out any relation that doesnt have that distinction. """

        ct = ContentType.objects.get_for_model(obj)
        if distinction:
            dist_q = Q(calendarrelation__distinction=distinction)
        else:
            dist_q = Q()
        return self.filter(dist_q, calendarrelation__content_type=ct, calendarrelation__object_id=obj.id)