-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Autofill membership when accepting workshop requests #2538
Autofill membership when accepting workshop requests #2538
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with two very minor comments.
<tr><th>Affiliated with a member?</th> | ||
<td> | ||
{{ object.member_affiliation|default:"—" }} | ||
</td></tr> | ||
<tr><th>Member registration code:</th> | ||
<td> | ||
{{ object.member_code|default:"—" }} | ||
</td></tr> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
member_code = "" | ||
if member_affiliation != "no": | ||
if randbool(0.75): | ||
# 50% of time, use an existing member code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
75% *
Also updates fake data creation to include membership codes.
Fixes #2399