macropin / django-registration

Django-registration (redux) provides user registration functionality for Django websites.
http://django-registration-redux.readthedocs.org
Other
975 stars 350 forks source link

Skip deleting users with protected/restricted relations #441

Closed Urth closed 8 months ago

Urth commented 8 months ago

Allow the registration profile cleanup to succeed when a user has protected or restricted relations. The cleanup assumes the users that are selected for cleanup have never been activated. But it is possible for an admin to activate a user without using the registration profile. When the user is then deactivated and the profile becomes a valid candidate for cleanup it may have associated records which prevent it from being deleted.

coveralls commented 8 months ago

Coverage Status

coverage: 97.019% (-0.1%) from 97.162% when pulling 361852f4156228814f9b4090cc5cb1045353a875 on Urth:delete_protected_users into 4a4f90ba1af332f66d44f6d18c3b14698dcd1b88 on macropin:main.