diff --git a/adminsec/management/commands/import.py b/adminsec/management/commands/import.py index 3ba7b96..ee42a3f 100644 --- a/adminsec/management/commands/import.py +++ b/adminsec/management/commands/import.py @@ -99,7 +99,6 @@ def handle(self, *args, **options): is_hpcadmin=False, consented_to_terms=username in users_consented, phone=user_data.phone_number, - uid=user_data.uid, username=username, ) hpcuser = HpcUser( @@ -118,6 +117,7 @@ def handle(self, *args, **options): expiration=make_aware(user_data.expiration), login_shell=user_data.login_shell, username=user_data.username, + uid=user_data.uid, ) hpcuser.save_with_version()