mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-30 09:20:15 +02:00
Linting
This commit is contained in:
parent
0d238e8793
commit
688257a718
1 changed files with 4 additions and 4 deletions
|
@ -667,17 +667,17 @@ class DomainApplicationDeleteView(DomainApplicationPermissionDeleteView):
|
||||||
"""
|
"""
|
||||||
Collects all orphaned contacts associated with a given DomainApplication object.
|
Collects all orphaned contacts associated with a given DomainApplication object.
|
||||||
|
|
||||||
An orphaned contact is defined as a contact that is associated with the application,
|
An orphaned contact is defined as a contact that is associated with the application,
|
||||||
but not with any other application. This includes the authorizing official, the submitter,
|
but not with any other application. This includes the authorizing official, the submitter,
|
||||||
and any other contacts linked to the application.
|
and any other contacts linked to the application.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
application (DomainApplication): The DomainApplication object for which to find orphaned contacts.
|
application (DomainApplication): The DomainApplication object for which to find orphaned contacts.
|
||||||
check_db (bool, optional): A flag indicating whether to check the database for the existence of the contacts.
|
check_db (bool, optional): A flag indicating whether to check the database for the existence of the contacts.
|
||||||
Defaults to False.
|
Defaults to False.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
tuple: A tuple containing two lists. The first list contains the IDs of the orphaned contacts.
|
tuple: A tuple containing two lists. The first list contains the IDs of the orphaned contacts.
|
||||||
The second list contains any duplicate contacts found. ([Contacts], [Contacts])
|
The second list contains any duplicate contacts found. ([Contacts], [Contacts])
|
||||||
"""
|
"""
|
||||||
contacts_to_delete = []
|
contacts_to_delete = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue