DEV Community

Mayank-21
Mayank-21

Posted on

How to set on_delete=models.CASCADE default in python 3?

Currently I am working to convert my python2 Django web-project into python 3.

My project contains lots of models.py files so I have to add manually on_delete=models.CASCADE in all files where I have set default it in python 2.

Now there are around more than 2000 instances where I…

Top comments (0)