Closed reginafcompton closed 1 year ago
@ecedmondson - THIS IS NOT URGENT. You can review when you are state-side! Again: this is not urgent; please continue eating ham.
Thanks for clarifying that it is not urgent, @reginafcompton...however, I did not even have a laptop with me so I could not have helped anyway. I am back in Houston and will try to take a look at this this evening....without ham unfortunately...
add blank=True...
I think you mean either add blank=False
or remove blank=True
. Either way of expressing this idea, the code already does so.
Happy to approve. I think I have neglected checking for new issues in the issues tab of this project...
Thank you @ecedmondson ! I'll likely get this merged and deployed before the end of the week.
Description
The AHS newsletter editor has requested that members are required (moving forward) to indicate how they want to receive their newsletter (print, email, or both).
Changes include:
blank=True
~blank=False
to theMember.contact_preference
; this no longer allows forms to pass a "blank" value forMember.contact_prference
, i.e., no more empty strings.Manual Testing
Three forms support the creation and editing of members:
One. Join – http://127.0.0.1:8000/join/ This form now includes and requires contact_preference info.
Two. The "update information" form, accessible via the profile page – http://127.0.0.1:8000/profile/ This form always included contact_preference, but now it requires it.
Three. The super admin view, which allows adding and editing members. This form always included contact_preference, but now it requires it. This could introduce some tedium if an admin needs to edit an existing member's data, since the admin will need to know the member's contact preference, if it was not already populated.
Closes https://github.com/americanhandelsociety/americanhandelsociety-members/issues/169