'Return the name of the model, fetch parent if model is a proxy'

def get_model_name(self, model):

    if model._meta.proxy:
        try:
            model = list(model._meta.parents.keys())[0]
        except IndexError:
            pass
    return model._meta.verbose_name
