15 lines
483 B
Python
15 lines
483 B
Python
from django.shortcuts import get_object_or_404
|
|
from django.views.generic import ListView
|
|
|
|
from membershipworks.models import Member
|
|
from .models import Certification
|
|
|
|
|
|
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)
|