Both CASCASE and PROTECT are working, but I cannot get RESTRICT to work. I am going through the Mozilla tutorial.
book = models.ForeignKey('Book', on_delete=models.RESTRICT, null=True)
I am getting this error when I try to make migrations
AttributeError: module 'django.db.models' has no attribute 'RESTRICT'
I am running django 3.2.4