add_account_contact
This module provides a custom Django management command to add an email address to.
the Account Contact list associated with an Account in the system.
Classes
- Command
Handles the logic for adding an account contact via command-line arguments.
Command-line Arguments
- –account_numberstr, optional
The Smarter account number to which the user belongs.
- –company_namestr, optional
The company name to which the user belongs.
- –emailstr, optional
The email address for the new superuser/account contact.
- –usernamestr, optional
The username for the new superuser. If provided, the email will be derived from the associated user profile.
Exceptions
- SmarterValueError
Raised if neither account_number nor company_name is provided, or for invalid operation/state.
Usage Example
python manage.py add_account_contact –account_number=<number> –email=<email> python manage.py add_account_contact –company_name=”<name>” –username=<username>