Open neopostmodern opened 4 years ago
How do we want to handle protected foreign keys? Right now we're throwing 500s...
Example:
django.db.models.deletion.ProtectedError: ("Cannot delete some instances of model 'CaseSet' because they are referenced through a protected foreign key: 'BenchmarkingSession.case_set'", <QuerySet [<BenchmarkingSession: 61cba1fb-50c8-4a3c-92cf-fa29e329e3c9 <finished>>, <BenchmarkingSession: a77d9312-35c5-4cad-88ca-1d7f34872f54 <finished>>, <BenchmarkingSession: d28ac4df-70dc-4dcf-9098-785c544cb716 <running>>, <BenchmarkingSession: d733f1c8-e176-4fc1-a2da-d394188c1eb3 <running>>, <BenchmarkingSession: f493ed10-b440-4937-babf-af1d8deb5cba <finished>>, <BenchmarkingSession: f7e8db59-abd5-40e7-8ee5-03227d1b5cf7 <finished>>]>) [25/May/2020 14:57:20] "DELETE /api/v1/case-sets/4519edd2-7c7c-433e-9c1f-e60c41fc3f7b HTTP/1.1" 500 18734
Steps to reproduce:
@maccinza @mzwiessele
How do we want to handle protected foreign keys? Right now we're throwing 500s...
Example:
Steps to reproduce:
@maccinza @mzwiessele