我有兩種模式。 當我嘗試刪除聯繫人recevied錯誤Django刪除錯誤信息
Exception Value:
("Cannot delete some instances of model 'GuestContact' because they are referenced through a protected foreign key: 'Reservation.res_company'", <QuerySet [<Reservation: Reservation object>, <Reservation: Reservation object>]>)
我不」想看到Django的錯誤頁面。我想發送信息「這個記錄不能刪除,但這個聯繫人用於預訂」
你能幫助我嗎?
問候
你可以張貼的看法? – zaidfazil