You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
maurice-g
added a commit
to maurice-g/drf-tracking
that referenced
this issue
Mar 12, 2018
Introducing
on_delete=models.PROTECT
for theApiRequestLog
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.The text was updated successfully, but these errors were encountered: