beda-software / drf-writable-nested

Writable nested model serializer for Django REST Framework
Other
1.07k stars 116 forks source link

Do not delete related objects that have on_delete=SET_NULL / SET_DEFAULT #170

Closed izimobil closed 2 years ago

izimobil commented 2 years ago

This fixes issue https://github.com/beda-software/drf-writable-nested/issues/72, see the issue description for more details. Also added DEFAULT_AUTO_FIELD setting to get rid of warnings when running tests on newer Django versions.

ruscoder commented 2 years ago

Hello @izimobil! Thanks for the contribution, good job.