2022-02-15 21:43:19 -05:00
|
|
|
from django.shortcuts import get_object_or_404
|
|
|
|
from django.views.generic import ListView
|
2021-03-23 17:08:00 -04:00
|
|
|
|
2022-02-15 17:12:06 -05:00
|
|
|
from membershipworks.models import Member
|
|
|
|
from .models import Certification
|
|
|
|
|
|
|
|
|
2022-02-15 21:43:19 -05:00
|
|
|
class MemberCertificationListView(ListView):
|
|
|
|
template_name = "paperwork/member_certifications.dj.html"
|
|
|
|
context_object_name = "certifications"
|
|
|
|
|
|
|
|
def get_queryset(self):
|
|
|
|
self.member = get_object_or_404(Member, uid=self.kwargs["uid"])
|
|
|
|
return Certification.objects.filter(member=self.member)
|