From 8de3762a22b7c858f7d46cddc478123a8be94e91 Mon Sep 17 00:00:00 2001 From: Horilla Date: Wed, 19 Jun 2024 12:11:31 +0530 Subject: [PATCH] [FIX] ONBOARDING: Portal employee and user creation issues fixed --- onboarding/models.py | 1 + onboarding/templates/onboarding/profile_view.html | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/onboarding/models.py b/onboarding/models.py index 703ef5485..43e1a88fe 100644 --- a/onboarding/models.py +++ b/onboarding/models.py @@ -187,6 +187,7 @@ class OnboardingPortal(HorillaModel): token = models.CharField(max_length=200) used = models.BooleanField(default=False) count = models.IntegerField(default=0) + profile = models.ImageField(upload_to="employee/profile", null=True, blank=True) objects = HorillaCompanyManager("candidate_id__recruitment_id__company_id") def __str__(self): diff --git a/onboarding/templates/onboarding/profile_view.html b/onboarding/templates/onboarding/profile_view.html index a7d7e7871..46ade64bd 100644 --- a/onboarding/templates/onboarding/profile_view.html +++ b/onboarding/templates/onboarding/profile_view.html @@ -55,9 +55,14 @@
+
- {{candidate.name}} + {% if profile %} + {{candidate.name}} + {% else %} + {{candidate.name}} + {% endif %}

Welcome Aboard