merge_duplicate_users
Merge the users that share an email address into one.
Migration account.0011_merge_duplicate_users does this once on every platform, before
account.0012_unique_user_email makes the address unique. Run this command with --dry-run
first, to see what the migration will merge, rename and delete. Without it, it merges, which is
only needed on a database that is still behind 0012. See smarter.apps.account.user_merge.
- class smarter.apps.account.management.commands.merge_duplicate_users.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
SmarterCommandDjango manage.py merge_duplicate_users command.
Prints one line per email address that more than one user has, then each row that is renamed. With
--verbose, also each row that is moved or deleted. Running it again merges nothing.- help = 'Merge the users that share an email address into the one who signed in most recently.'