Ecto has_many :on_delete protect

Isn’t django PROTECT an equivalent of SQL RESTRICT?

It’s been a while since I used django, but if so, on_delete: :restrict should do what you want.