mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Changed from using a string to importing the actual CASCADE function
This commit is contained in:
parent
a8dc71bcb1
commit
f6cd053f74
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ class Registry(object):
|
|||
for fld in field_definitions:
|
||||
extra_params = {'to': 'categories.Category', 'blank': True}
|
||||
if field_type != 'ManyToManyField':
|
||||
extra_params['on_delete'] = 'CASCADE'
|
||||
extra_params['on_delete'] = CASCADE
|
||||
extra_params['null'] = True
|
||||
if isinstance(fld, str):
|
||||
field_name = fld
|
||||
|
|
|
|||
Loading…
Reference in a new issue