Register the date a user activation email sent and reset it when the user becomes...
authorSofia Papagiannaki <papagian@gmail.com>
Wed, 30 May 2012 10:38:07 +0000 (13:38 +0300)
committerSofia Papagiannaki <papagian@gmail.com>
Wed, 30 May 2012 10:38:07 +0000 (13:38 +0300)
commit751d24cf34dfaded5033a014b9e1197c0d571e8d
tree5babd5e594f85d916dd23aed45263445bb93f55e
parent6294eae4d01fb8f3568131133b66976a8a3888bb
Register the date a user activation email sent and reset it when the user becomes active (for future use)

This field can have the following values:
* epoch: signifies the user has been created before adding the specific field (so we have no actually information whether an activation email has been sent or not)
* NULL: signifies the user is active or no activation email has been sent
* other date (except epoch):  the date the activation email sent

Passing the -n option in list users snf command shows only the new users (created after adding the field) who have not received an activation.

Refs: #2471
snf-astakos-app/astakos/im/activation_backends.py
snf-astakos-app/astakos/im/functions.py
snf-astakos-app/astakos/im/management/commands/listusers.py
snf-astakos-app/astakos/im/management/commands/sendactivation.py
snf-astakos-app/astakos/im/migrations/0010_auto__add_field_astakosuser_activation_sent__chg_field_service_url.py [new file with mode: 0644]
snf-astakos-app/astakos/im/migrations/0011_set_old_activation_sent.py [new file with mode: 0644]
snf-astakos-app/astakos/im/models.py