this is my model
class User_Profile(models.Model):
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    phone_number = models.IntegerField(null=True, blank=True)
    full_name = models.CharField(max_length=50, null=True, blank=True)
    project_number = models.CharField(max_length=20, null=True, blank=True)
    project_name = models.CharField(max_length=100, null=True, blank=True)
    sector_name = models.CharField(max_length=100, null=True, blank=True)
    contract_ordering = models.IntegerField(null=True, blank=True)
    objects = models.Manager() # default manager
    non_null_contract_ordering = User_Profile_Manager() # custom manager

    def __str__(self):
        return str(self.project_name)
    class Meta:
        verbose_name="profile"
        ordering = ['contract_ordering', 'project_name']
class User_ContractPermission(models.Model):

    choice = [
        ('Yes', 'Yes'),
        ('No', 'No'),
    ]
    user = models.OneToOneField(User_Profile, on_delete=models.CASCADE)
    contract_app = models.CharField(max_length=250, choices=choice, null=True, blank=True)
    add_new_contract = models.CharField(max_length=250, choices=choice, null=True, blank=True)
    Sector_manager_action_2 = models.CharField(max_length=250, choices=choice, null=True, blank=True)
    Check_data_action_3 = models.CharField(max_length=250, choices=choice, null=True, blank=True)
    Cost_estimation_action_4 = models.CharField(max_length=250, choices=choice, null=True, blank=True)
    Financial_action_5 = models.CharField(max_length=250, choices=choice, null=True, blank=True)
    Copy_contract_action_6 = models.CharField(max_length=250, choices=choice, null=True, blank=True)
    Check_contract_action_7 = models.CharField(max_length=250, choices=choice, null=True, blank=True)
    TCTA_action_8 = models.CharField(max_length=250, choices=choice, null=True, blank=True)
    EVP_action_9 = models.CharField(max_length=250, choices=choice, null=True, blank=True)
    CEO_action_10 = models.CharField(max_length=250, choices=choice, null=True, blank=True)
    AssignAttach2_action_11 = models.CharField(max_length=250, choices=choice, null=True, blank=True)
    AssignAttach1_action_12 = models.CharField(max_length=250, choices=choice, null=True, blank=True)
    project_index = models.CharField(max_length=250, choices=choice, null=True, blank=True)
    sector_index = models.CharField(max_length=250, choices=choice, null=True, blank=True)
    main_index = models.CharField(max_length=250, choices=choice, null=True, blank=True)

    def __str__(self):
        return str(self.user)
    class Meta:
        verbose_name="User_ContractPermission"
and this is my views
def get_user_data(request):
    user_profile = User_Profile.objects.get(user=request.user)
    user_tender_permission = User_TenderPermission.objects.get(user=request.user)
    user_contract_permission = User_ContractPermission.objects.get(user=user_profile)
    user_project_permission = User_ProjectPermission.objects.get(user=request.user)
    employee_profile = Employee_Profile.objects.get(user=request.user)
    user_OrgstructurePermission = User_OrgstructurePermission.objects.get(user=request.user)
    notification_to = Actions.objects.filter(Q(to_id=user_profile.id) & ~Q(is_read_cc=user_profile.id))
    notification_cc = Actions.objects.filter(Q(cc=user_profile.id) & ~Q(is_read_cc=user_profile.id))
    notification_count = notification_to.count() + notification_cc.count()
    circular_report = Circular.objects.filter(~Q(is_read_circular=user_profile.id) & ~Q(circular_no=None))
    circular_notification_count = circular_report.count()


    return {
        'user_tender_permission': user_tender_permission,
        'user_contract_permission': user_contract_permission,
        'user_project_permission': user_project_permission,
        'user_profile': user_profile,
        'user_OrgstructurePermission': user_OrgstructurePermission,
        'employee_profile': employee_profile,
        'circular_notification_count':circular_notification_count,
        'notification_count':notification_count,

    }   
@login_required(login_url='login')
def home(request):
    data = get_user_data(request)
    context = {**data,
               }
    return render(request, 'main/home.html', context)
and this is my html
                                {% if user_contract_permission.contract_app == 'Yes' %}
                                    <div class="col-xxl-2 col-xl-3 col-lg-3 mb-lg-0 col-md-6 mb-3">
                                        {% if notification_count > 0 %}
                                        <a href="{% url 'contract_notification' %}">
                                        {% else %}
                                            {% if user_contract_permission.main_index == 'Yes' %}
                                                <a href="{% url 'contract_main_index' %}">

                                            {% endif %}

                                            {% if user_contract_permission.project_index == 'Yes' %}
                                                <a href="{% url 'contract_project_index' %}">
                                            {% endif %}

                                            {% if user_contract_permission.sector_index == 'Yes' %}
                                                <a href="{% url 'contract_sector_index' %}">
                                            {% endif %}

                                            {% if user_contract_permission.Cost_estimation_action_4 == 'Yes' %}
                                                <a href="{% url 'contract_cost_estimation_index' %}">
                                            {% endif %}
                                        {% endif %}zz
                                                <div class="card">
                                                    <div class="card-body">
                                                        <div class="card-icon mb-4">
                                                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file-text">
                                                                <path d="M14 3v4a1 1 0 0 0 1 1h4"></path>
                                                                <path d="M14 3L9 8H5a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2h-7"></path>
                                                                <path d="M9 8L9 15"></path>
                                                                <path d="M12 8L12 15"></path>
                                                                <path d="M15 8L15 15"></path>
                                                              </svg>
                                                        </div>
                                                        <h5 class="card-title mb-0" style="font-size: 120%; font-weight:1000; font-family: 'Cairo', sans-serif;">العقود <br>CONTRACTS

                                                        </h5>
                                                    </div>
                                                </div>
                                            </a>

                                    </div>

                                {% endif %}
need to get all results of user_profiles for each User to use them in html template