File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ def delete(
498
498
safemode: If `True`, prohibit nested transactions and prompt to confirm. Default
499
499
is `dj.config['safemode']`.
500
500
force_parts: Delete from parts even when not deleting from their masters.
501
- include_parts : If `True`, include part/master pairs in the cascade.
501
+ force_masters : If `True`, include part/master pairs in the cascade.
502
502
Default is `True`.
503
503
504
504
Returns:
@@ -573,7 +573,7 @@ def cascade(table):
573
573
574
574
master_name = get_master (child .full_table_name )
575
575
if (
576
- include_parts
576
+ force_masters
577
577
and master_name
578
578
and master_name != table .full_table_name
579
579
and master_name not in visited_masters
Original file line number Diff line number Diff line change @@ -115,13 +115,13 @@ def test_delete_parts_error(schema_simp_pop):
115
115
"""test issue #151"""
116
116
with pytest .raises (dj .DataJointError ):
117
117
Profile ().populate_random ()
118
- Website ().delete (include_parts = False )
118
+ Website ().delete (force_masters = False )
119
119
120
120
121
121
def test_delete_parts (schema_simp_pop ):
122
122
"""test issue #151"""
123
123
Profile ().populate_random ()
124
- Website ().delete (include_parts = True )
124
+ Website ().delete (force_masters = True )
125
125
126
126
127
127
def test_delete_parts_complex (schema_simp_pop ):
You can’t perform that action at this time.
0 commit comments