old_contents: # MIT License
  # Copyright (c) 2017 MassChallenge, Inc.
  import swapper
  from django.apps import AppConfig
  from django.contrib.auth import get_user_model
  
  from accelerator.apps import AcceleratorConfig
  
  
  def add_get_profile_to_user_class():
      User = get_user_model()
      BaseProfile = swapper.load_model(AcceleratorConfig.name, 'BaseProfile')
      User.add_to_class('get_profile',
                        lambda user: BaseProfile.objects.get(
                            email=user.email))
  
  
  class AcceleratorAbstractConfig(AppConfig):
      name = 'accelerator_abstract'
  
      def ready(self):
          add_get_profile_to_user_class()
  
new_contents: # MIT License
  # Copyright (c) 2017 MassChallenge, Inc.
  import swapper
  from django.apps import AppConfig
  from django.contrib.auth import get_user_model
  
  from accelerator.apps import AcceleratorConfig
  
  
  def add_get_profile_to_user_class():
      User = get_user_model()
      BaseProfile = swapper.load_model(AcceleratorConfig.name, 'BaseProfile')
      User.add_to_class('get_profile',
                        lambda user: BaseProfile.objects.get(
                            email=user.email))
  
  
  class AcceleratorAbstractConfig(AppConfig):
      name = 'accelerator_abstract'
  
subject: remove call to `add_get_profile_to_user_class` from abstract app.