Common tool certification added as prereq to other tool certifications

This commit is contained in:
Emrah Atil 2020-08-13 14:40:58 -06:00
parent 7111ccb821
commit 693219d49e

View File

@ -379,11 +379,11 @@ class LockoutViewSet(viewsets.ViewSet, List):
authorization['id'] = member.id authorization['id'] = member.id
authorization['name'] = member.first_name + ' ' + member.last_name authorization['name'] = member.first_name + ' ' + member.last_name
authorization['common'] = bool(member.orientation_date or member.vetted_date) authorization['common'] = bool(member.orientation_date or member.vetted_date)
authorization['lathe'] = bool(member.lathe_cert_date) authorization['lathe'] = bool(member.lathe_cert_date) and authorization['common']
authorization['mill'] = bool(member.mill_cert_date) authorization['mill'] = bool(member.mill_cert_date) and authorization['common']
authorization['wood'] = bool(member.wood_cert_date) authorization['wood'] = bool(member.wood_cert_date) and authorization['common']
authorization['wood2'] = bool(member.wood2_cert_date) authorization['wood2'] = bool(member.wood2_cert_date) and authorization['common']
authorization['cnc'] = bool(member.cnc_cert_date) authorization['cnc'] = bool(member.cnc_cert_date) and authorization['common']
active_member_cards[card.card_number] = authorization active_member_cards[card.card_number] = authorization