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
