-
Notifications
You must be signed in to change notification settings - Fork 14
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
Toekomstig lidmaatschap #471
base: master
Are you sure you want to change the base?
Conversation
…rships To make that easier, move the age grouping of relations from the template to the view.
That means they won't get any mail, so to avoid this if it isn't expected mark this in the UI.
# Only having a special relation means that the user won't get any email | ||
# which may be unintended, so warn about this situation in the UI. | ||
rrelated_regular_members = {r['who'] for r in rrelated | ||
if r['how'] is None and Es.relation_is_active(r)} |
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.
flake8 klaagt hierover, maar ik weet geen mooie oplossing - hoe zou ik dit beter kunnen opschrijven?
./kn/leden/views.py:135:80: E501 line too long (81 > 79 characters)
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.
if not r['how']
Es.entity_humanName(x['with']), | ||
Es.entity_humanName(x['how']))) | ||
rrelated = sorted(e.get_rrelated(), | ||
key=lambda x: (Es.DT_MIN - Es.relation_until(x), | ||
key=lambda x: (Es.relation_in_future(x), |
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.
Waarom hier Es.relation_in_future
maar bij related
met een not
ervoor?
if r['how'] is None and Es.relation_is_active(r)} | ||
for r in rrelated: | ||
if r['who'] not in rrelated_regular_members: | ||
r['no_regular'] = True |
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.
Dus dit vlaggetje wordt ook gezet bij relaties in het verleden, waar toen die persoon wel normaal lid geweest heeft kunnen zijn?
Het moet wel getest worden. |
Helaas nog niet alles getest: ik kan
giedo
niet werkend krijgen op mijn Vagrant box dus ik kan geen virtuele relaties testen.Maar toekomstig lidmaatschap werkt goed bij mij.