clinic/netforce_clinic/controllers/del_patient_move.py

16 lines
351 B
Python

from netforce.controller import Controller
class DelPatientMove(Controller):
_path="/del_patient_move"
def get(self):
try:
id=self.get_argument("id")
id=int(id)
get_model("clinic.patient.move").delete([id])
except Exception as e:
print("ERROR ", e)
DelPatientMove.register()