Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create recipient with unsubscribed categories set #89

Open
cjg89 opened this issue Oct 2, 2020 · 0 comments
Open

Cannot create recipient with unsubscribed categories set #89

cjg89 opened this issue Oct 2, 2020 · 0 comments
Assignees
Labels
bug A problem with existing functionality

Comments

@cjg89
Copy link
Member

cjg89 commented Oct 2, 2020

Trying to create a new recipient with one or more Unsubscribed Categories set returns a ValueError--probably because we try to add the recipient instance to the selected subscription categories within the recipient create/update form's save method:

https://github.com/UCF/PostMaster/blob/master/manager/forms.py#L108-L109

We should either update this logic to better support the setting of unsubscriptions upon recipient creation, or modify the form to only include the Unsubscribed Categories field on update.

@cjg89 cjg89 added the bug A problem with existing functionality label Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A problem with existing functionality
Projects
None yet
Development

No branches or pull requests

4 participants