From 5b70b8f1b8bbbe6aeec43b8d8dfdc6b7cc68bc9c Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Thu, 30 Sep 2021 16:33:01 -0400 Subject: Fixes for collaborator field Signed-off-by: Sawyer Bergeron Change-Id: I3dbdedf26fa84617ea7680a0f99e032d88f1ea98 Signed-off-by: Sawyer Bergeron --- src/booking/quick_deployer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/booking') diff --git a/src/booking/quick_deployer.py b/src/booking/quick_deployer.py index 1fd6a9c..2ab18a6 100644 --- a/src/booking/quick_deployer.py +++ b/src/booking/quick_deployer.py @@ -269,7 +269,7 @@ def create_from_form(form, request): booking.pdf = PDFTemplater.makePDF(booking) for collaborator in users_field: # list of Users (not UserProfile) - booking.collaborators.add(collaborator) + booking.collaborators.add(collaborator.user) booking.save() -- cgit 1.2.3-korg