|
@@ -80,7 +80,7 @@ class Command(BaseCommand):
|
|
|
sys.stdout.write("Found {} unique account(s) with duplicate identities.\n".format(len(unique_users)))
|
|
|
|
|
|
for user_list in unique_users:
|
|
|
- user_list.sort(key=lambda x: x.date_joined)
|
|
|
+ user_list.sort(key=lambda x: (x.is_superuser, not x.managed, x.date_joined))
|
|
|
|
|
|
primary_user = user_list[0]
|
|
|
if not noinput and not self._confirm_merge(primary_user, user_list[1:]):
|