django model - on_delete=models.PROTECT()
Django
I'm trying to use on_delete with my models but my IDE is asking me for: collector, fields, sub_objs, using (i.e. ..., on_delete=models.PROTECT(collector, fields, sub_objs, using)).
Can someone please tell me what these are and give me a quick example because I can find them documented anywhere :(
Answer link : https://codehunter.cc/a/django/django-model-on-delete-models-protect
Posted May 4, 2022, 2:00 AM UTC
10