Coverage for website/singlepages/views.py: 100.00%

23 statements  

« prev     ^ index     » next       coverage.py v7.6.7, created at 2025-08-14 10:31 +0000

1from django.contrib.auth.decorators import login_required 

2from django.utils.decorators import method_decorator 

3from django.views.generic import TemplateView 

4 

5 

6@method_decorator(login_required, "dispatch") 

7class StyleGuideView(TemplateView): 

8 """Static page with the style guide.""" 

9 

10 template_name = "singlepages/styleguide.html" 

11 

12 

13@method_decorator(login_required, "dispatch") 

14class BecomeActiveView(TemplateView): 

15 """Static page with info about becoming an active member.""" 

16 

17 template_name = "singlepages/become_active.html" 

18 

19 

20class PrivacyPolicyView(TemplateView): 

21 """Static page with the privacy policy.""" 

22 

23 template_name = "singlepages/privacy_policy.html" 

24 

25 

26class ResponsibleDisclosureView(TemplateView): 

27 """Static page with the responsible disclosure policy.""" 

28 

29 template_name = "singlepages/responsible_disclosure.html" 

30 

31 

32class EventTermsView(TemplateView): 

33 """Static page with the event registration terms.""" 

34 

35 template_name = "singlepages/event_registration_terms.html" 

36 

37 

38class SiblingAssociationsView(TemplateView): 

39 """Static page with the sibling associations.""" 

40 

41 template_name = "singlepages/sibling_associations.html" 

42 

43 

44class ContactView(TemplateView): 

45 """Static page with contact info.""" 

46 

47 template_name = "singlepages/contact.html" 

48 

49 

50class StudentWellBeingView(TemplateView): 

51 """Static page with info on student well-being.""" 

52 

53 template_name = "singlepages/student_well-being.html" 

54 

55 

56class StudentParticipantView(TemplateView): 

57 """Renders a page with information about student information.""" 

58 

59 template_name = "singlepages/student_participation.html"