from allauth.socialaccount import providers
from django.apps import AppConfig

from .provider import ServiceKontoProvider


class Config(AppConfig):
    name = 'meinberlin.apps.servicekonto'
    label = 'meinberlin_servicekonto'

    def ready(self):
        providers.registry.register(ServiceKontoProvider)

from allauth.socialaccount import providers
from django.apps import AppConfig


class Config(AppConfig):
    name = 'meinberlin.apps.servicekonto'
    label = 'meinberlin_servicekonto'

    def ready(self):
        from .provider import ServiceKontoProvider
        providers.registry.register(ServiceKontoProvider)

Fix servicekonto import to be lazy on ready
Fix servicekonto import to be lazy on ready

  from allauth.socialaccount import providers
  from django.apps import AppConfig
- 
- from .provider import ServiceKontoProvider
  
  
  class Config(AppConfig):
      name = 'meinberlin.apps.servicekonto'
      label = 'meinberlin_servicekonto'
  
      def ready(self):
+         from .provider import ServiceKontoProvider
          providers.registry.register(ServiceKontoProvider)
  
Fix servicekonto import to be lazy on ready
## Code Before:
from allauth.socialaccount import providers
from django.apps import AppConfig

from .provider import ServiceKontoProvider


class Config(AppConfig):
    name = 'meinberlin.apps.servicekonto'
    label = 'meinberlin_servicekonto'

    def ready(self):
        providers.registry.register(ServiceKontoProvider)

## Instruction:
Fix servicekonto import to be lazy on ready
## Code After:
from allauth.socialaccount import providers
from django.apps import AppConfig


class Config(AppConfig):
    name = 'meinberlin.apps.servicekonto'
    label = 'meinberlin_servicekonto'

    def ready(self):
        from .provider import ServiceKontoProvider
        providers.registry.register(ServiceKontoProvider)
