code: def get_subscriber_model():
  	
  	model_name = get_subscriber_model_string()
  
  	# Attempt a Django 1.7 app lookup
  	try:
  		subscriber_model = django_apps.get_model(model_name)
  	except ValueError:
  		raise ImproperlyConfigured(
  			"DJSTRIPE_SUBSCRIBER_MODEL must be of the form 'app_label.model_name'."
  		)
  	except LookupError:
  		raise ImproperlyConfigured(
  			"DJSTRIPE_SUBSCRIBER_MODEL refers to model '{model}' "
  			"that has not been installed.".format(model=model_name)
  		)
  
  	if (
  		"email" not in [field_.name for field_ in subscriber_model._meta.get_fields()]
  	) and not hasattr(subscriber_model, "email"):
  		raise ImproperlyConfigured("DJSTRIPE_SUBSCRIBER_MODEL must have an email attribute.")
  
  	if model_name != settings.AUTH_USER_MODEL:
  		# Custom user model detected. Make sure the callback is configured.
  		func = get_callback_function("DJSTRIPE_SUBSCRIBER_MODEL_REQUEST_CALLBACK")
  		if not func:
  			raise ImproperlyConfigured(
  				"DJSTRIPE_SUBSCRIBER_MODEL_REQUEST_CALLBACK must be implemented "
  				"if a DJSTRIPE_SUBSCRIBER_MODEL is defined."
  			)
  
  	return subscriber_model
docs: Attempt to pull settings.DJSTRIPE_SUBSCRIBER_MODEL.
  
  	Users have the option of specifying a custom subscriber model via the
  	DJSTRIPE_SUBSCRIBER_MODEL setting.
  
  	This methods falls back to AUTH_USER_MODEL if DJSTRIPE_SUBSCRIBER_MODEL is not set.
  
  	Returns the subscriber model that is active in this project.