edc icon indicating copy to clipboard operation
edc copied to clipboard

"Add User" raises an exception on submit if notifications are selected

Open erikvw opened this issue 4 years ago • 0 comments

Seems edc-notification checks the email, which, since the user is being added, has not yet been set.

UserEmailError: ["User ***** email address is not defined."] (30 additional frame(s) were not displayed) ... File "django/dispatch/dispatcher.py", line 173, in send return [ File "django/dispatch/dispatcher.py", line 174, in (receiver, receiver(signal=self, sender=sender, **named)) File "edc_notification/signals.py", line 62, in manage_mailists_on_userprofile_m2m_changed update_mailing_lists_in_m2m( File "edc_notification/update_mailing_lists_in_m2m.py", line 41, in update_mailing_lists_in_m2m response = manager.subscribe(userprofile.user, verbose=verbose) File "edc_notification/mailing_list_manager.py", line 82, in subscribe raise UserEmailError(f"User {user}'s email address is not defined.")

erikvw avatar Mar 24 '20 15:03 erikvw