Have you checked the arguments for on_delete on ForeignKey? https://docs.djangoproject.com/en/1.11/ref/models/fields/#arguments
There’s models.SET_NULL, models.SET_DEFAULT, models.DO_NOTHING, etc… If you need to prevent someone from deleting something, you should use view permissions. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Fellipe Henrique Sent: Tuesday, October 3, 2017 11:29 AM To: Django Users Subject: There is any way to prevent cascade delete on FK field, without using signal? There is any way to prevent cascade delete on FK field, without using signal? I need to block the Delete process, not to set NULL on field.. Regards! T.·.F.·.A.·. S+F Fellipe Henrique P. Soares e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge' Fedora Ambassador: https://fedoraproject.org/wiki/User:Fellipeh Blog: http:www.fellipeh.eti.br<http://www.fellipeh.eti.br> GitHub: https://github.com/fellipeh Twitter: @fh_bash -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com<mailto:django-users+unsubscr...@googlegroups.com>. To post to this group, send email to django-users@googlegroups.com<mailto:django-users@googlegroups.com>. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF1jwZH4s%3DSnCaS3hqCiZPQd%3D4vvZPYU1EH7oEp1ixpNrg5ERw%40mail.gmail.com<https://groups.google.com/d/msgid/django-users/CAF1jwZH4s%3DSnCaS3hqCiZPQd%3D4vvZPYU1EH7oEp1ixpNrg5ERw%40mail.gmail.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c1a06fd799a247ceafca9affd851d8c5%40ISS1.ISS.LOCAL. For more options, visit https://groups.google.com/d/optout.