def prj_add_dep(self, *args, **kwargs):
        """Add more departments to the project.

        :returns: None
        :rtype: None
        :raises: None
        """
        if not self.cur_prj:
            return
        dialog = DepAdderDialog(project=self.cur_prj)
        dialog.exec_()
        deps = dialog.deps
        for dep in deps:
            depdata = djitemdata.DepartmentItemData(dep)
            treemodel.TreeItem(depdata, self.prj_dep_model.root)
def prj_add_dep ( self , * args , ** kwargs ) : if not self . cur_prj : return dialog = DepAdderDialog ( project = self . cur_prj ) dialog . exec_ ( ) deps = dialog . deps for dep in deps : depdata = djitemdata . DepartmentItemData ( dep ) treemodel . TreeItem ( depdata , self . prj_dep_model . root )
Add more departments to the project.

        :returns: None
        :rtype: None
        :raises: None