Пример #1
0
def del_brand_by_id(id):
    query = session.query(Brand)
    brand = query.get(id)
    session.delete(brand)
    session.commit()
Пример #2
0
def del_prostatus_by_id(id):
    query = session.query(Pro_status)
    pro_type = query.get(id)
    session.delete(pro_type)
    session.commit()
Пример #3
0
def del_series_by_id(id):
    query = session.query(Series)
    series = query.get(id)
    session.delete(series)
    session.commit()
Пример #4
0
def del_role_by_id(id):
    query = session.query(User_role)
    role = query.get(id)
    session.delete(role)
    session.commit()
Пример #5
0
def del_note_by_id(id):
    query = session.query(Note)
    note = query.get(id)
    session.delete(note)
    session.commit()
Пример #6
0
def del_status_by_id(id):
    query = session.query(Overall_Status)
    status = query.get(id)
    session.delete(status)
    session.commit()
Пример #7
0
def del_type_by_id(id):
    query = session.query(Launch_Type)
    type = query.get(id)
    session.delete(type)
    session.commit()
Пример #8
0
def del_Activity_by_id(id):
    query = session.query(Activity)
    Activity = query.get(id)
    session.delete(Activity)
    session.commit()