(name, short_name, unique_internal_identifier)
Add a new department to OpenOversight.
Add a new department to OpenOversight.
Add a new department to OpenOversight .
def add_department(name, short_name, unique_internal_identifier):
    """Add a new department to OpenOversight."""
    dept = Department(name=name, short_name=short_name, unique_internal_identifier_label=unique_internal_identifier)
    db.session.add(dept)
    db.session.commit()
    print("Department added with id {}".format(dept.id))
def add_department ( name , short_name , unique_internal_identifier ) : dept = Department ( name = name , short_name = short_name , unique_internal_identifier_label = unique_internal_identifier ) db . session . add ( dept ) db . session . commit ( ) print ( "Department added with id {}" . format ( dept . id ) )