Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ForeignKey on delete django

When an object referenced by a ForeignKey is deleted, 
Django will emulate the behavior of the SQL constraint 
specified by the on_delete argument.

Options: 
1. CASCADE
2. PROTECT
3. RESTRICT
4. SET_NULL
5. SET_DEFAULT
6. SET(...)
7. DO_NOTHING
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #ForeignKey #delete #django
ADD COMMENT
Topic
Name
9+7 =