Creates a file called "doctypes.json" from "departments.json." We use "doctypes.json" to map document types to the department which can fulfill it in the typeahead feature on the new request page. {{ d['/public_records_portal/departments.py|idio|asciisyn']['create_doctypes'] }}
Creates an array of of the departments. {{ d['/public_records_portal/departments.py|idio|asciisyn']['create_list_depts'] }}
Retrieves the backup Public Records Request (PRR) liaison for a particular department. This person is responsible for fulfilling a public records request when a PRR liaison is not available. {{ d['/public_records_portal/departments.py|idio|asciisyn']['get_dept_backup'] }}
Given a user object (defined in the 'models.py' file), this checks to see if the user’s email is in the "departments.json" file. If the user is not in the 'departments.json' file {{ d['/public_records_portal/departments.py|idio|asciisyn']['get_dept'] }}