def get_image_model():
 from django.apps import apps
 model_string = get_image_model_string()
 try:
  return apps.get_model(model_string)
 except ValueError:
  raise ImproperlyConfigured(u"WAGTAILIMAGES_IMAGE_MODEL must be of the form 'app_label.model_name'")
 except LookupError:
  raise ImproperlyConfigured((u"WAGTAILIMAGES_IMAGE_MODEL refers to model '%s' that has not been installed" % model_string))

def get_image_model ( ) : from django . apps import apps model_string = get_image_model_string ( ) try : return apps . get_model ( model_string ) except ValueError : raise ImproperlyConfigured ( u"WAGTAILIMAGES_IMAGE_MODEL must be of the form 'app_label.model_name'" ) except LookupError : raise ImproperlyConfigured ( ( u"WAGTAILIMAGES_IMAGE_MODEL refers to model '%s' that has not been installed" % model_string ) )
get the image model from the wagtailimages_image_model setting .