Monday, September 30, 2024

Re: Salutation

Hi Sreedhar.

Can you show us your docker files? Dockerfiles and .yml

El lun, 30 sept 2024 a la(s) 10:00 a.m., Sreedhar p (psridhar742@gmail.com) escribió:

Can any one explain how to connect django site with sql in docker containers
I created two containers one for application and one for sql database in same network the database is exposed in port no 3307 application requests does not process by database then how to solve this?


On Sat, Sep 28, 2024, 21:21 Abdul Qoyyuum Haji Abdul Kadir <abdul.qoyyuum@gmail.com> wrote:
Can we not start a hello thread and spam everyone, please? Thank you.

On Sat, 28 Sept 2024 at 23:50, Van Kamanga <vankamanga7@gmail.com> wrote:

Hi


Le sam. 28 sept. 2024, 16:29, Shivansh Varshney <shivanshvarshney45@gmail.com> a écrit :
Hii

On Saturday, September 28, 2024 at 1:12:35 AM UTC+5:30 Sreedhar p wrote:

Hii


On Sat, Sep 28, 2024, 00:32 <oladipo...@gmail.com> wrote:
hi

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/42e4df1e-563b-4b37-9fb0-88bf0edfdd3bn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BGQzJNWSKruVFo3K1vsQf7eoe5MO8tF7HaAxs7V-1C%3D-_0NJA%40mail.gmail.com.


--
Abdul Qoyyuum Bin Haji Abdul Kadir
Nickname: Q

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANVqoJ9_z%3D%3DMC_CfJ69ub0KU%3DR5a31ZPCx-SP-V7741a584Edg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADzXRbeqS%3DQhq%3D1t59EM4LQFGt2DLA5aHTiGpDTAmmTbU2aLKw%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAH6XLKgkpwniDiZpEakLLjOuYm0-TK%2B3Rr_Jy5fReFx6MHb0Tw%40mail.gmail.com.

Re: Fabric as a WebApp

Thanks. Can you explain a little bit more on how celery can help stream the output prompts from Fabric commands for me to input them, so that it continues its process?

E.g. of a Fabric task where we need to get the latest git commit of a puppet configuration (this will prompt for the root password):

from fabric import task

@task
def get_latest_git_commit_puppet(context):
    context.run("su -c 'cd /etc/puppet && git rev-parse --short HEAD~2'")


On Mon, 30 Sept 2024 at 19:09, Obodoma Uzondu Vincent <uobodomavin@gmail.com> wrote:
Use celery. It is easy to implement. 

On Monday, September 30, 2024, Abdul Qoyyuum Haji Abdul Kadir (Agent Q) <abdul.qoyyuum@gmail.com> wrote:
Hi all,

I'm working on a Django project that puts Fabric into a webpage. The idea is simple, make a Fabric task that automates remote code execution from a webpage to authenticated/connected/authorized servers/machines/switches with a click of a button on a webpage with Fabric.

Example usage and quick tutorial on how to use the Fabric package: FabFile Tutorial — Qoyyuum (buymeacoffee.com)

This idea works but up to the point where I really need to respond to the commands executed on server-side (e.g. confirmation or it awkwardly re-prompting for sudo password). The webpage doesn't get this prompt for me to respond to, or rather, it won't stream the output from server side to django view side, enabling interactivity.

Some suggested to use Async but I have no idea how to apply this: Asynchronous support | Django documentation | Django (djangoproject.com) 

If anyone can explain how to apply Async (or other solution) to enable interactivity to an automation script, I appreciate it. Thanks. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/21c986b4-0eb9-4454-86ea-fd0486973843n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACsKspmYA9xsX_O0joMewFAP-03gyceFn1EhGx-a5vTdyK6UPQ%40mail.gmail.com.


--
Abdul Qoyyuum Bin Haji Abdul Kadir
Nickname: Q

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANVqoJ-heprf2%2Bb0NcwqWuF%2BjMKaxApJ7ZqH%3D7uyirpagDxnow%40mail.gmail.com.

Re: Fabric as a WebApp

Use celery. It is easy to implement. 

On Monday, September 30, 2024, Abdul Qoyyuum Haji Abdul Kadir (Agent Q) <abdul.qoyyuum@gmail.com> wrote:
Hi all,

I'm working on a Django project that puts Fabric into a webpage. The idea is simple, make a Fabric task that automates remote code execution from a webpage to authenticated/connected/authorized servers/machines/switches with a click of a button on a webpage with Fabric.

Example usage and quick tutorial on how to use the Fabric package: FabFile Tutorial — Qoyyuum (buymeacoffee.com)

This idea works but up to the point where I really need to respond to the commands executed on server-side (e.g. confirmation or it awkwardly re-prompting for sudo password). The webpage doesn't get this prompt for me to respond to, or rather, it won't stream the output from server side to django view side, enabling interactivity.

Some suggested to use Async but I have no idea how to apply this: Asynchronous support | Django documentation | Django (djangoproject.com) 

If anyone can explain how to apply Async (or other solution) to enable interactivity to an automation script, I appreciate it. Thanks. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/21c986b4-0eb9-4454-86ea-fd0486973843n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACsKspmYA9xsX_O0joMewFAP-03gyceFn1EhGx-a5vTdyK6UPQ%40mail.gmail.com.

Sunday, September 29, 2024

Fabric as a WebApp

Hi all,

I'm working on a Django project that puts Fabric into a webpage. The idea is simple, make a Fabric task that automates remote code execution from a webpage to authenticated/connected/authorized servers/machines/switches with a click of a button on a webpage with Fabric.

Example usage and quick tutorial on how to use the Fabric package: FabFile Tutorial — Qoyyuum (buymeacoffee.com)

This idea works but up to the point where I really need to respond to the commands executed on server-side (e.g. confirmation or it awkwardly re-prompting for sudo password). The webpage doesn't get this prompt for me to respond to, or rather, it won't stream the output from server side to django view side, enabling interactivity.

Some suggested to use Async but I have no idea how to apply this: Asynchronous support | Django documentation | Django (djangoproject.com) 

If anyone can explain how to apply Async (or other solution) to enable interactivity to an automation script, I appreciate it. Thanks. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/21c986b4-0eb9-4454-86ea-fd0486973843n%40googlegroups.com.

Saturday, September 28, 2024

Re: Salutation

Can we not start a hello thread and spam everyone, please? Thank you.

On Sat, 28 Sept 2024 at 23:50, Van Kamanga <vankamanga7@gmail.com> wrote:

Hi


Le sam. 28 sept. 2024, 16:29, Shivansh Varshney <shivanshvarshney45@gmail.com> a écrit :
Hii

On Saturday, September 28, 2024 at 1:12:35 AM UTC+5:30 Sreedhar p wrote:

Hii


On Sat, Sep 28, 2024, 00:32 <oladipo...@gmail.com> wrote:
hi

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/42e4df1e-563b-4b37-9fb0-88bf0edfdd3bn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BGQzJNWSKruVFo3K1vsQf7eoe5MO8tF7HaAxs7V-1C%3D-_0NJA%40mail.gmail.com.


--
Abdul Qoyyuum Bin Haji Abdul Kadir
Nickname: Q

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANVqoJ9_z%3D%3DMC_CfJ69ub0KU%3DR5a31ZPCx-SP-V7741a584Edg%40mail.gmail.com.

Re: Salutation

Hi


Le sam. 28 sept. 2024, 16:29, Shivansh Varshney <shivanshvarshney45@gmail.com> a écrit :
Hii

On Saturday, September 28, 2024 at 1:12:35 AM UTC+5:30 Sreedhar p wrote:

Hii


On Sat, Sep 28, 2024, 00:32 <oladipo...@gmail.com> wrote:
hi

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/42e4df1e-563b-4b37-9fb0-88bf0edfdd3bn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BGQzJNWSKruVFo3K1vsQf7eoe5MO8tF7HaAxs7V-1C%3D-_0NJA%40mail.gmail.com.

Friday, September 27, 2024

Re: Salutation

Salam

On Fri, Sep 27, 2024 at 11:12 PM Sreedhar p <psridhar742@gmail.com> wrote:

Hii


On Sat, Sep 28, 2024, 00:32 <oladipokayode0@gmail.com> wrote:
hi

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BARzD80pkTOKygrz8YogMFK1WfTpXGdimcPQ4jGXVe0D18GqQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADzXRbdeAMfhfSdEc6Ykaxv88iBkOXxHFC5WOHq-AM3aoZ99Pw%40mail.gmail.com.


--
___________________________________
Amir JamshidiJam
Computer Engineering at Shiraz University
4|\/|!|2_|_|

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAC-x6WZ4W9uRBnaG6yXP0UHCj2spxsH8T%2BciiONKTprecAr3Eg%40mail.gmail.com.

Re: Salutation

Hii

On Saturday, September 28, 2024 at 1:12:35 AM UTC+5:30 Sreedhar p wrote:

Hii


On Sat, Sep 28, 2024, 00:32 <oladipo...@gmail.com> wrote:
hi

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/42e4df1e-563b-4b37-9fb0-88bf0edfdd3bn%40googlegroups.com.

Re: Salutation

Hii


On Sat, Sep 28, 2024, 00:32 <oladipokayode0@gmail.com> wrote:
hi

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BARzD80pkTOKygrz8YogMFK1WfTpXGdimcPQ4jGXVe0D18GqQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADzXRbdeAMfhfSdEc6Ykaxv88iBkOXxHFC5WOHq-AM3aoZ99Pw%40mail.gmail.com.

Salutation

hi

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BARzD80pkTOKygrz8YogMFK1WfTpXGdimcPQ4jGXVe0D18GqQ%40mail.gmail.com.

Salutation

hi

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BARzD8whA%3DKLn_Y-UmEHycyRXRU7MQdFF6J8hgvvai%3D-Le19w%40mail.gmail.com.

Re: Looking for django devloper roler


Dear Malhaar,

I am writing to express my keen interest in the Django developer role. As a Python developer with over 1 year of experience, I possess strong skills in Python, Django, and LLMs (Large Language Models).
In my previous experience, I have successfully developed multiple chatbots leveraging Django and LLMs. I am also proficient in front-end development with over 2 years of experience. My technical skills are complemented by my location, as I am based in Gurugram, Haryana, India.
I am highly motivated to contribute my expertise in building robust and scalable web applications using Django. I am confident that my knowledge and experience align well with the requirements of this role. I am eager to learn more about the specific opportunities available and how I can add value to your team.
Thank you for your time and consideration. I have attached my resume for your review and look forward to hearing from you soon.

Sincerely,
Anish Kumar
anishkumar231999@gmail.com


On Fri, Sep 27, 2024, 8:41 PM malhaar mahapatro <mahapatromalhaar@gmail.com> wrote:

Bonjour,
Je viens de lire votre annonce et je suis intéressé par un poste Django en Inde. Je vis actuellement en France et je suis à la recherche d'un emploi dans ce domaine.
Cordialement,
Raphaël Kpoghomou


On Fri, 27 Sept 2024, 7:35 pm kpogomou Raphael, <raphaelkpogomou@gmail.com> wrote:
Bonjour,
Je viens de vous lire et suis partant pour le job Django en Inde . Je vis présentement en France. .
Cordialement 
Raphaël kpoghomou 
Whatsapp :+84814525621

Le ven. 27 sept. 2024 à 09:35, malhaar mahapatro <mahapatromalhaar@gmail.com> a écrit :
I am looking for django devloper roler any opportunities in India please connect with me and I am immediate joiner 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMgb%2BbH_HF9cB1D0xGGhwJViHLaxFa7f5NV83N3tm0wwUfBm4A%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BuxXhi8M2XcXMwfKV-0m%2BAoE5Lyr%3D-sNkdqaAEPkacX9zPvzg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMgb%2BbFkn5ygtuDC_BGvsnLaCo%3DnQOYfsdVR4in8mpidW7sMVw%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPtRW9asa-A%2BqqV03Xbi50h7s2SXOETdNAuKyXy7RiANdSbwRA%40mail.gmail.com.

Re: In django template cannot get data from values_list() for select options dropdown

Maybe change this:
Province.objects.values_list("id", "province_name")

to this:
Province.objects.values_list("id")

Although that doesn't explain the [] around 1. Are there multiple ids per province_name?

On Fri, 27 Sept 2024 at 22:05, Cương Vũ Thế <vuthecuongjapan@gmail.com> wrote:

Im django noob here so I would like to get your support. Thank you so much in advanced. 

1. My model.py:

class Province(models.Model): province_name = models.CharField() class Employee(models.Model): first_name = models.CharField() province = models.ForeignKey(Province, on_delete=models.CASCADE,)

2. My filters.py (django-filter)

from django_filters import FilterSet, filters from .models import ( Employee, Province, ) class EmployeeFilter(FilterSet): province_name_multi_select = ( filters.ModelMultipleChoiceFilter( field_name="province_id", queryset=Province.objects.values_list("id", "province_name"), ) ) class Meta: model = Employee fields = [ "id", "first_name", "province", ]

3. My views.py

class EmployeeListView(FilterView): model = Employee queryset = Employee.objects.select_related( "province", ) form_class = EmployeeForm strict = False context_object_name = "employees_list" filterset_class = EmployeeFilter

** 4. My employee_filter.html**

<select class="form-select" name="province_name_multi_select" id="multiple-select-field" multiple\> {% for element in filter.form.province_name_multi_select %} {{ element.tag }} \<= **Problem happened here** {% endfor %} </select\>

** 5. My problem** Above {{ element.tag }} produced <option value="[1], 'abc province']" </option> But what I want it to produce is, you can guess that <option value="1" </option>.

 Once again, thank you.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/30be874a-7aad-4fa0-b21f-78b000c7f963n%40googlegroups.com.


--
Abdul Qoyyuum Bin Haji Abdul Kadir
Nickname: Q

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANVqoJ_6Fq13kV4uAxR80iKmGB_pd2dO152iCZ2TCzzcyh%2BzPg%40mail.gmail.com.

Re: Looking for django devloper roler

Bonjour,
Je viens de lire votre annonce et je suis intéressé par un poste Django en Inde. Je vis actuellement en France et je suis à la recherche d'un emploi dans ce domaine.
Cordialement,
Raphaël Kpoghomou


On Fri, 27 Sept 2024, 7:35 pm kpogomou Raphael, <raphaelkpogomou@gmail.com> wrote:
Bonjour,
Je viens de vous lire et suis partant pour le job Django en Inde . Je vis présentement en France. .
Cordialement 
Raphaël kpoghomou 
Whatsapp :+84814525621

Le ven. 27 sept. 2024 à 09:35, malhaar mahapatro <mahapatromalhaar@gmail.com> a écrit :
I am looking for django devloper roler any opportunities in India please connect with me and I am immediate joiner 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMgb%2BbH_HF9cB1D0xGGhwJViHLaxFa7f5NV83N3tm0wwUfBm4A%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BuxXhi8M2XcXMwfKV-0m%2BAoE5Lyr%3D-sNkdqaAEPkacX9zPvzg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMgb%2BbFkn5ygtuDC_BGvsnLaCo%3DnQOYfsdVR4in8mpidW7sMVw%40mail.gmail.com.

In django template cannot get data from values_list() for select options dropdown

Im django noob here so I would like to get your support. Thank you so much in advanced. 

1. My model.py:

class Province(models.Model): province_name = models.CharField() class Employee(models.Model): first_name = models.CharField() province = models.ForeignKey(Province, on_delete=models.CASCADE,)

2. My filters.py (django-filter)

from django_filters import FilterSet, filters from .models import ( Employee, Province, ) class EmployeeFilter(FilterSet): province_name_multi_select = ( filters.ModelMultipleChoiceFilter( field_name="province_id", queryset=Province.objects.values_list("id", "province_name"), ) ) class Meta: model = Employee fields = [ "id", "first_name", "province", ]

3. My views.py

class EmployeeListView(FilterView): model = Employee queryset = Employee.objects.select_related( "province", ) form_class = EmployeeForm strict = False context_object_name = "employees_list" filterset_class = EmployeeFilter

** 4. My employee_filter.html**

<select class="form-select" name="province_name_multi_select" id="multiple-select-field" multiple\> {% for element in filter.form.province_name_multi_select %} {{ element.tag }} \<= **Problem happened here** {% endfor %} </select\>

** 5. My problem** Above {{ element.tag }} produced <option value="[1], 'abc province']" </option> But what I want it to produce is, you can guess that <option value="1" </option>.

 Once again, thank you.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/30be874a-7aad-4fa0-b21f-78b000c7f963n%40googlegroups.com.