* refactors sharing user setting by introducing share_with(user) and share_with_list(user_list) for BaseObject for a more self-explanatory sharing
This commit is contained in:
mpeltriaux committed 2021-11-11 15:09:03 +01:00
1 parent a5e816c67b
commit 6c35fc59af
15 files changed
+58 -36

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ class NewEmaForm(AbstractCompensationForm, CompensationResponsibleFormMixin):
acc.fundings.set(fundings)
# Add the creating user to the list of shared users
acc.users.add(user)
acc.share_with(user)
# Add the log entry to the main objects log list
acc.log.add(action)