def fill_oauth2_slug(apps, schema_editor):
 OAuth2ProviderConfig = apps.get_model(u'third_party_auth', u'OAuth2ProviderConfig')
 for config in OAuth2ProviderConfig.objects.all():
  config.provider_slug = config.backend_name
  config.save()

def fill_oauth2_slug ( apps , schema_editor ) : OAuth2ProviderConfig = apps . get_model ( u'third_party_auth' , u'OAuth2ProviderConfig' ) for config in OAuth2ProviderConfig . objects . all ( ) : config . provider_slug = config . backend_name config . save ( )
fill in the provider_slug to be the same as backend_name for backwards compatability .