
    .~hy                     6    d Z ddlmZ ddlmZ  G d de      Zy)a	  
A management command which deletes expired accounts (e.g.,
accounts which signed up but never activated) from the database.

Calls ``RegistrationProfile.objects.delete_expired_users()``, which
contains the actual logic for determining which accounts are deleted.

    )BaseCommand   )RegistrationProfilec                       e Zd ZdZd Zy)Commandz3Delete expired user registrations from the databasec                     | j                   j                  d       t        j                  j	                         }|dk(  r| j                   j                  d       y | j                   j                  d|z         y )NzRunning cleanupregistration.r   zGcleanupregistration completed. There is no user that has to be deleted.z4cleanupregistration completed. Deleted user count=%d)stdoutwriter   objectsdelete_expired_users)selfargsoptionsdeleted_counts       }/var/www/peopleoo.sandbox-dev.co.uk/venv/lib/python3.12/site-packages/registration/management/commands/cleanupregistration.pyhandlezCommand.handle   s]    89+33HHJAKKghKKTWdde    N)__name__
__module____qualname__helpr    r   r   r   r      s    @Dfr   r   N)__doc__django.core.management.baser   modelsr   r   r   r   r   <module>r      s     4 )	fk 	fr   