Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users not deletable anymore - Change on_delete #98

Open
maurice-g opened this issue Feb 8, 2018 · 0 comments
Open

Users not deletable anymore - Change on_delete #98

maurice-g opened this issue Feb 8, 2018 · 0 comments

Comments

@maurice-g
Copy link

Introducing on_delete=models.PROTECT for the ApiRequestLog object in response to #91 makes it impossible to delete users without deleting every single related API request manually beforehand.

Please change the behaviour to on_delete=models.CASCADE, which makes sure that users can be deleted and all related API request logs will be also removed in the process.

Alternatively SET_NULL would also be an option, if you want to keep the request logs intact also after user deletion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant