

def get_context_data(self, **kwargs):
    context = super().get_context_data(**kwargs)
    context['transitions_history'] = TransitionsHistory.objects.filter((Q(kwargs__icontains=self.object.username) | Q(kwargs__icontains=self.object.get_full_name()))).distinct()
    context['transition_history_in_fieldset'] = False
    return context

dataset/ETHPy150Open allegro/ralph/src/ralph/accounts/admin.py UserTransitionHistoryView.get_context_data/original