Management commands
===================

Until now, there is only one management command, documented below.

.. _clear_expired_signups:

``clear_expired_signups``
-------------------------

This command is used to delete from the database user registrations that are
more than :ref:`setting-activation-days` days old and haven't been activated
yet.

It deletes both the :py:class:`signup.models.Validation` instance and the user
model instance. By that time, it's worth noting that the username [#f1]_
registered by the original user becomes available again. If the original user
still wants to keep that username, it has to register again.

.. rubric:: Footnotes

.. [#f1] "username", here, refers to the field marked as `USERNAME_FIELD`_ in
         current installed user model.

.. _`USERNAME_FIELD`: https://docs.djangoproject.com/en/dev/topics/auth/customizing/#django.contrib.auth.models.CustomUser.USERNAME_FIELD