From 5801717e6e69aab520d3b1df173a7fd16785efa6 Mon Sep 17 00:00:00 2001 From: Horilla Date: Fri, 29 Nov 2024 12:34:24 +0530 Subject: [PATCH] [FIX] RECRUITMENT: Fixed template filter not loading issue and pylint issues --- recruitment/auth.py | 6 ++++-- .../candidate/candidate_interview_view.html | 6 +++--- .../candidate/candidate_self_tracking.html | 20 +++++++++---------- recruitment/templates/candidate/document.html | 8 ++++---- .../candidate/document_create_form.html | 2 +- .../templates/candidate/document_form.html | 2 +- .../templates/candidate/reject_form.html | 4 ++-- 7 files changed, 25 insertions(+), 23 deletions(-) diff --git a/recruitment/auth.py b/recruitment/auth.py index 48ab8b7b1..fcd4d9de5 100644 --- a/recruitment/auth.py +++ b/recruitment/auth.py @@ -1,7 +1,9 @@ from django.contrib.auth.backends import BaseBackend -from .models import Candidate from django.contrib.auth.models import AnonymousUser +from .models import Candidate + + class CandidateAuthenticationBackend(BaseBackend): def authenticate(self, request, username=None, password=None): try: @@ -14,4 +16,4 @@ class CandidateAuthenticationBackend(BaseBackend): try: return Candidate.objects.get(pk=user_id) except Candidate.DoesNotExist: - return AnonymousUser() \ No newline at end of file + return AnonymousUser() diff --git a/recruitment/templates/candidate/candidate_interview_view.html b/recruitment/templates/candidate/candidate_interview_view.html index c674f8855..c625e1158 100644 --- a/recruitment/templates/candidate/candidate_interview_view.html +++ b/recruitment/templates/candidate/candidate_interview_view.html @@ -1,4 +1,4 @@ -{% load static i18n %} +{% load static i18n recruitmentfilters %}