pinax-models icon indicating copy to clipboard operation
pinax-models copied to clipboard

Some related objects that should not be deleted

Open psychok7 opened this issue 9 years ago • 1 comments

This will hopefully fix https://github.com/pinax/pinax-models/issues/13 regarding some related objects that should not be deleted.

Some more testing feedback would be appreciated to ensure this works properly ;)

psychok7 avatar Aug 09 '15 14:08 psychok7

This should actually be activated by a setting mimiquing the behaviour of the on_delete Cascade and/or Set_Null https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.on_delete

Django Default is Cascade which is the current behaviour without this PR

psychok7 avatar Aug 11 '15 18:08 psychok7