<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save_related(self, request, form, formsets, change):
 """ Rebuilds the tree after saving items related to parent. """

        super(MenuItemAdmin, self).save_related(request, form, formsets, change)
        self.model.objects.rebuild()