permissions
django_spire.core.management.commands.spire_startapp_pkg.permissions
PermissionInheritanceHandler
Handles permission inheritance configuration for nested Django apps.
This class manages the interactive collection of permission inheritance settings when creating child apps that may inherit permissions from parent apps.
Initializes the handler with a reporter for user interaction.
Parameters:
-
reporter(Reporter) –Reporter instance for displaying prompts and messages.
Source code in django_spire/core/management/commands/spire_startapp_pkg/permissions.py
reporter = reporter
instance-attribute
collect_inheritance_data
Collects permission inheritance configuration from the user.
Prompts the user to determine if the new app should inherit permissions from its parent app, and if so, collects the necessary parent model information.
Parameters:
Returns: