def get_model(self, model_or_label):
    if isinstance(model_or_label, ModelBase):
        return model_or_label
    else:
        return apps.get_model(*model_or_label.lower().split('.'))
def get_model(self, model_or_label):
    if isinstance(model_or_label, ModelBase):
        return model_or_label
    else:
        return apps.get_model(*model_or_label.lower().split('.'))