<reponame>CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons<filename>mayan/apps/user_management/handlers.py<gh_stars>1-10
from django.apps import apps


def handler_initialize_new_user_options(sender, instance, **kwargs):
    UserOptions = apps.get_model(
        app_label='user_management', model_name='UserOptions'
    )

    if kwargs['created']:
        UserOptions.objects.create(user=instance)

from django.apps import apps


def handler_initialize_new_user_options(sender, instance, **kwargs):
    UserOptions = apps.get_model(
        app_label='user_management', model_name='UserOptions'
    )

    if kwargs['created']:
        UserOptions.objects.create(user=instance)