You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I was doing this code, the compiler generated an error
"TypeError: init() got an unexpected keyword argument 'on_delete'
"
then I added to all lines where there is a "... = models.ForeignKey(......)" entry: "on_delete = models.CASCADE"
thereafter " pyhon3 manage.py makemigrations 'mysiteblock' " completed without errors and created the migration file 0001
thanks.
The text was updated successfully, but these errors were encountered:
thanks for this example!
when I was doing this code, the compiler generated an error
"TypeError: init() got an unexpected keyword argument 'on_delete'
"
then I added to all lines where there is a "... = models.ForeignKey(......)" entry: "on_delete = models.CASCADE"
thereafter " pyhon3 manage.py makemigrations 'mysiteblock' " completed without errors and created the migration file 0001
thanks.
The text was updated successfully, but these errors were encountered: