2021-03-23 17:08:00 -04:00
|
|
|
from django.shortcuts import render
|
|
|
|
|
2022-02-15 17:12:06 -05:00
|
|
|
from membershipworks.models import Member
|
|
|
|
from .models import Certification
|
|
|
|
|
|
|
|
|
|
|
|
def member_certifications(request, uid: str):
|
|
|
|
context = {
|
|
|
|
"member": Member.objects.get(uid=uid),
|
|
|
|
"certifications": Certification.objects.filter(member_id=uid),
|
|
|
|
}
|
|
|
|
return render(request, "paperwork/member_certifications.dj.html", context)
|