management.management.commands.initialize_notification_configΒΆ

Management command to initialize the notifications configuration.

Module ContentsΒΆ

class management.management.commands.initialize_notification_config.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]ΒΆ

Bases: django.core.management.base.BaseCommand

Management command to initialize NotificationConfig with default values.

help = 'Initializes the default NotificationConfig singleton if it does not exist yet.'[source]ΒΆ
handle(*args, **kwargs)[source]ΒΆ

Create the NotificationConfig singleton with default values if missing.

Parameters:
  • args (Any)

  • kwargs (dict[str, Any])

Return type:

None