def is_model_registered(app_label, model_name):
 try:
  apps.get_registered_model(app_label, model_name)
 except LookupError:
  return False
 else:
  return True

def is_model_registered ( app_label , model_name ) : try : apps . get_registered_model ( app_label , model_name ) except LookupError : return False else : return True
checks whether a given model is registered .