from django.apps import apps

def handler_theme_create(sender, instance, created, **kwargs):
    CurrentTheme = apps.get_model(
        app_label='appearance', model_name='CurrentTheme'
    )
    
    if created:
        CurrentTheme.objects.create(theme=instance)
        


from django.apps import apps

def handler_theme_create(sender, instance, created, **kwargs):
    CurrentTheme = apps.get_model(
        app_label='appearance', model_name='CurrentTheme'
    )
    
    if created:
        CurrentTheme.objects.create(theme=instance)
        

