Even when the database django, python manage.py makemigrations display __init __ () missing 1 required positional argument: 'on_delete' solution of

 

 

 

 When we declare the two tables, plus a cascade,

 

 The result is like a

 

Guess you like

Origin www.cnblogs.com/Zhao159461/p/11521473.html