Django- Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’

QuestionsCategory: DjangoDjango- Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’
Rishab Staff asked 2 weeks ago

Django- Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’

when adding foreign key, I am getting this error.

user_id = models.ForeignKey(Users,null=True)