From c135da1f47e24b06d6c22d97d4d914564706bb74 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sat, 30 Mar 2024 20:49:56 +0100 Subject: [PATCH] Share notation sheet with anyone that has the link Signed-off-by: Emmy D'Anello --- participation/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/participation/models.py b/participation/models.py index e388c99..15063aa 100644 --- a/participation/models.py +++ b/participation/models.py @@ -425,6 +425,7 @@ class Tournament(models.Model): gc = gspread.service_account_from_dict(settings.GOOGLE_SERVICE_CLIENT) spreadsheet = gc.create(f"Feuille de notes - {self.name}", folder_id=settings.NOTES_DRIVE_FOLDER_ID) spreadsheet.update_locale("fr_FR") + spreadsheet.share(None, "anyone", "writer", with_link=True) self.notes_sheet_id = spreadsheet.id self.save()