cmsmanage/paperwork/views.py

13 lines
380 B
Python
Raw Normal View History

from django.shortcuts import render
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)