From eca35f4de8d048fcf38ba77c3a24acd417975fb6 Mon Sep 17 00:00:00 2001 From: Sivert Kronen Hatteberg <skh@uio.no> Date: Fri, 14 Jan 2022 12:05:43 +0100 Subject: [PATCH] Allow existing comment on role to differ --- greg/management/commands/import_guests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/greg/management/commands/import_guests.py b/greg/management/commands/import_guests.py index 67edccd9..ab3b84ac 100644 --- a/greg/management/commands/import_guests.py +++ b/greg/management/commands/import_guests.py @@ -162,8 +162,8 @@ class Command(BaseCommand): orgunit=orgunit, person=person, type=role_type, - comments=role_data["comment"], ) + role.comments = role_data["comment"], role.end_date = self._end_date role.save() logger.info("updating_existing_role", role=role, sponsor=role.sponsor) -- GitLab